/* ========================================
   FILE ATTACHMENT SECTION STYLES
   Tệp tin đính kèm - Modern Design
   ======================================== */

/* File Attachment Card Container */
.attach_cover {
  padding-left: 15px;
  padding-right: 15px;
}

.file-attachment-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 0 !important;
  margin-bottom: 12px;
  overflow: visible;
  border: 1px solid #e2e8f0;
}

/* Section Title - Card Header */
.file-attachment-card .section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

/* Card Body Content */
.card-body-content {
  padding: 0;
}

/* Alert Box - Warning/Info Style */
.alert-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  border-radius: 10px;
  padding: 12px 24px;
  margin: 12px 24px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
  position: relative;
  overflow: hidden;
}

.alert-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.alert-box::after {
  content: '⚠️';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: 0.08;
  pointer-events: none;
}

/* Alert Icon/Header */
.alert-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #92400e;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* File Rules List */
.file-rules {
  list-style: none;
  padding-left: 32px;
  margin-bottom: 0;
  margin-left: 8px;
}

.file-rules li {
  color: #78350f;
  font-size: 0.95rem;
  line-height: 2.2;
  position: relative;
  padding-left: 16px;
  margin-bottom: 0px;
  transition: all 0.2s ease;
}

.file-rules li:hover {
  padding-left: 20px;
  color: #92400e;
}

.file-rules li:hover::before {
  transform: translateX(2px);
}

.file-rules strong {
  color: #92400e;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Custom File Upload Container */
.cover-upload {
  padding: 8px 24px;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 14px;
  border: 3px dashed #cbd5e0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: calc(100% - 48px);
  box-sizing: border-box;
}

/* Decorative Background Element */
.custom-file-upload::before {
  content: '📎';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-size: 4rem;
  opacity: 0.06;
  pointer-events: none;
  transition: all 0.4s ease;
}

.custom-file-upload:hover {
  border-color: #007bff;
  border-style: solid;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
}

.custom-file-upload:hover::before {
  transform: translateY(-50%) rotate(0deg) scale(1.1);
  opacity: 0.1;
}

/* Custom Upload Button */
.custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.custom-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.custom-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.45);
  color: #ffffff !important;
}

.custom-button:hover::before {
  left: 100%;
}

.custom-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35);
}

.custom-button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.custom-button:hover i {
  transform: scale(1.15);
}

/* Hide Default File Input */
.custom-file-upload input[type="file"] {
  display: none;
}

/* File Chosen Text Display */
.file-chosen-text {
  flex: 1;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  font-style: italic;
  transition: all 0.3s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.file-chosen-text:not(:empty) {
  font-style: normal;
  color: #1e293b;
  border-color: #007bff;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .formdiv .section-title {
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  .alert-box {
    padding: 14px 20px;
    margin: 8px 20px;
  }

  .alert-box li {
    margin-bottom: 0;
  }

  .custom-file-upload {
    margin: 0 20px 20px 20px;
  }

  .alert-box::after {
    font-size: 3rem;
    right: 15px;
  }

  .alert-icon {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .file-rules {
    padding-left: 24px;
    margin-left: 4px;
  }

  .file-rules li {
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 0px;
  }

  .custom-file-upload {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
  }

  .custom-file-upload::before {
    font-size: 3rem;
    right: 20px;
  }

  .custom-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .file-chosen-text {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}

@media (max-width: 576px) {
  .formdiv .section-title {
    font-size: 1rem;
    padding: 12px 16px;
    gap: 8px;
  }

  .alert-box {
    padding: 12px 16px;
    margin: 16px 16px 16px 16px;
  }

  .custom-file-upload {
    margin: 0 16px 20px 16px;
  }

  .alert-box::after {
    font-size: 2.5rem;
  }

  .alert-icon {
    font-size: 0.9rem;
    gap: 6px;
  }

  .file-rules {
    padding-left: 20px;
  }

  .file-rules li {
    font-size: 0.85rem;
    line-height: 1.9;
    padding-left: 14px;
  }

  .file-rules li::before {
    font-size: 1rem;
  }

  .file-rules strong {
    padding: 1px 6px;
    font-size: 0.85rem;
  }

  .custom-file-upload {
    padding: 16px;
  }

  .custom-file-upload::before {
    font-size: 2.5rem;
  }

  .custom-button {
    padding: 11px 20px;
    font-size: 0.9rem;
  }

  .file-chosen-text {
    font-size: 0.85rem;
    padding: 10px 12px;
    min-height: 42px;
  }
}

/* Animation for file selection */
@keyframes fileSelected {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.custom-file-upload.file-selected {
  animation: fileSelected 0.4s ease;
  border-color: #10b981;
  border-style: solid;
}

.custom-file-upload.file-selected .file-chosen-text {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

/* ========================================
   SUBMIT BUTTON STYLES
   Nút Gửi Phản Ánh - Modern Design
   ======================================== */

/* Submit Button Container */
#btnContainer {
  padding: 20px 0;
}

/* Submit Button */
.btn-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.35);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.btn-report::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-report:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.45);
  color: #ffffff !important;
}

.btn-report:hover::before {
  left: 100%;
}

.btn-report:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.35);
}

.btn-report:disabled {
  background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.6;
}

.btn-report:disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Go to List Button */
#btnGoToList {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  min-width: 200px;
}

#btnGoToList:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
}

#btnGoToList:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* Error Message Styling */
.err {
  min-height: 30px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Responsive Design for Buttons */
@media (max-width: 768px) {

  .btn-report,
  #btnGoToList {
    width: 100%;
    min-width: unset;
    padding: 12px 32px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {

  .btn-report,
  #btnGoToList {
    padding: 11px 24px;
    font-size: 0.9rem;
  }

  #btnContainer {
    padding: 16px 0;
  }
}