.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 4px;
  display: none;
}

/* 密码强度进度条样式 */
.password-strength-container {
  margin-top: 8px;
  height: 16px;
  background: #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(31, 38, 135, 0.08);
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(.4, 2, .6, 1), 0.4s;
  background: linear-gradient(90deg, #ff3e3e 0%, #ffe066 50%, #4ade80 100%);
  box-shadow: 0 1px 6px rgba(31, 38, 135, 0.10);
}

.password-strength-label {
  margin-top: 2px;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #2d3a4b;
  text-align: right;
  min-height: 18px;
}


body {
  font-family: Arial, sans-serif;
  background-color: #101010;
}

.rating-container {
  background: white;
  width: 100%;
  padding: 3% 2%;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  border-color: #dcdcdc;
}

.rating-label {
  font-size: 16px;
  color: #333;
  margin-top: 2%;
  margin-right: auto;
  font-weight: 500;
}

/* 星级评分样式 */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #ff4800;
}

.star-rating label:hover {
  transform: scale(1.1);
}

.danmaku-container {
  width: 100%;
  height: 300px;
  margin: 50px auto;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.danmaku-title {
  position: absolute;
  top: 15px;
  left: 20px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.danmaku-item {
  position: absolute;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 8px 15px;
  margin: 5px 0;
  white-space: nowrap;
  animation: moveLeft 8s linear infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.danmaku-item.right-to-left {
  animation: moveLeft 8s linear infinite;
}

.danmaku-item.left-to-right {
  animation: moveRight 8s linear infinite;
}

@keyframes moveLeft {
  from {
    transform: translateX(850px);
  }

  to {
    transform: translateX(-100%);
  }
}


.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.comment-text {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.username {
  color: #667eea;
  font-weight: bold;
  margin-right: 5px;
}

/* 不同颜色主题的弹幕 */
.danmaku-item.theme-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.danmaku-item.theme-blue .comment-text {
  color: white;
}

.danmaku-item.theme-blue .username {
  color: #ffd700;
}

.danmaku-item.theme-green {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.danmaku-item.theme-green .comment-text {
  color: white;
}

.danmaku-item.theme-green .username {
  color: #fff3cd;
}

.danmaku-item.theme-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.danmaku-item.theme-pink .comment-text {
  color: white;
}

.danmaku-item.theme-pink .username {
  color: #fff8e1;
}

/* 响应式设计 */
@media (max-width: 850px) {
  .danmaku-container {
    width: 95%;
    max-width: 800px;
  }

  @keyframes moveLeft {
    from {
      transform: translateX(100vw);
    }

    to {
      transform: translateX(-100%);
    }
  }

}



/* 隐藏的文件输入 */
.file-input {
  display:block;
}

/* 文件列表 */
.file-list {
  margin-top: 20px;
}


.selected-file {
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.upload_btn {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 0.1px;
    height: 0.1px;
}

.upload_btn.btn-visible {
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
}


.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.validation-message.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.validation-message.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}



/* AI警告模态框 */
.ai-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.ai-modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.warning-icon {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 15px;
}

.ai-modal h4 {
    color: #333;
    margin-bottom: 15px;
}

.ai-modal p {
    color: #666;
    margin-bottom: 10px;
}

.ai-modal .text-muted {
    font-size: 0.9em;
    color: #999;
}



/* 提交成功模态框样式 */
.success-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.success-modal h3 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.success-modal p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1em;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* 模态框按钮组 */
.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons .btn {
    min-width: 140px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-buttons .btn-outline-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.modal-buttons .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.modal-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid white;
    color: #333;
}

.modal-buttons .btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

body.dark-mode .form-control{
  background-color: #828282;
}