/******************************************************* Toast alert *******************************************************/
.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  top: -80px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:10px;
  color:#fff;
  min-width:260px;
  box-shadow:0 6px 20px rgba(0,0,0,0.15);
  z-index:1200;
  transition:top .5s cubic-bezier(.2,.9,.2,1), opacity 0.7s;
  opacity:0;
  cursor: default;
}

.toast.show{ 
  top: 95px;
  opacity:1; 
  pointer-events:auto; 
}

.toast .toast-icon{ 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  width:20px; 
  height:20px; 
}

.toast.success{ 
  background: #28a745;
}

.toast.error{ 
  background: #dc3545;
}

/******************************************************* Modal Confirmation *******************************************************/
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(6,12,34,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.show{ 
  display:flex; 
}

.modal-panel{ 
  background:#fff;
  padding: 30px;
  border-radius:16px;
  width: 400px;
  text-align:center;
  box-shadow:0 20px 50px rgba(6,12,34,0.3);
  opacity:0;
  transition: all 0.5s ease;
}

.modal-overlay.show .modal-panel{
  opacity: 1;
}

.modal-title{
  color: #0b3d91;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.modal-text{ 
  color:#555; 
  margin: 20px 0;
  line-height: 1.6;
}

.modal-actions{ 
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
}

.btn{ 
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-yes { 
  background: #28a745;
  color: #fff;
}

.btn-yes:hover { 
  background: #218838;
  transform: translateY(-1px);
}

.btn-no { 
  background: #dc3545;
  color: #fff;
}

.btn-no:hover { 
  background: #c82333;
  transform: translateY(-1px);
}

/* Main container */
main {
  width: 1000px;
  margin: 4rem auto 0;
  padding: 30px;
  color: #1a1a1a;
  line-height: 1.55;
}

/***************************************** breadcrumbs section ******************************************/
.breadcrumbs {
  font-size: 14px;
  margin: 20px 0;
  padding-bottom: 18px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #2563eb, #60a5fa, #2563eb) 1;
  color: #555;
}

.breadcrumbs a {
  color: #0b3d91;
  text-decoration: none;
  margin: 0 6px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #333;
  margin-left: 5px;
  cursor: default;
}

/******************************************************* upload-section *******************************************************/
.upload-section {
  padding: 20px 0 40px;
}

.upload-container{
  border: 1px solid #e5e7eb;
  max-width: 800px;
  margin: 0 auto;
  padding: 50px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1s ease forwards;
}

@keyframes fadeSlideIn { 
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title{
  color: #0b3d91;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
}

.subtitle{ 
  color: #666;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.upload-form{ 
  text-align: left;
}

.form-row{ 
  margin-bottom: 25px; 
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-row.full-width {
  grid-column: 1 / -1;
}

.label-upload{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0b3d91;
}

.form-row input, 
.form-row select, 
.form-row textarea{
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-row input:focus, 
.form-row select:focus, 
.form-row textarea:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(11,61,145,0.1);
  border-color: #0b3d91;
}

textarea{ 
  resize: vertical; 
  min-height: 120px; 
  max-height: 250px;
  line-height: 1.6;
}

.helper{ 
  display: block; 
  margin-top: 6px; 
  margin-left: 6px;
  color: #64748b; 
  font-size: 13px; 
}

/* Drop zone */
.drop-zone{
  border: 3px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.drop-zone:hover{ 
  background: #e0f2fe; 
  border-color: #0b3d91;
}

.drop-zone.dragover {
  background: #e0f2fe;
  border-color: #0b3d91;
  transform: scale(1.02);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.drop-zone-icon {
  width: 60px;
  height: 60px;
  background: #0b3d91;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.drop-zone p{ 
  margin: 0; 
  color: #475569;
  font-size: 15px;
  font-weight: 500;
}

.browse-link{ 
  color: #0b3d91;
  font-weight: 600;
  text-decoration: none;
}

.browse-link:hover {
  text-decoration: underline;
}

/* File info (preview) */
.file-info{
  margin-top: 20px;
  font-size: 15px;
  color: #334155;
}

.file-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.file-preview-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b3d91;
  border-radius: 12px;
  flex-shrink: 0;
}

.file-preview-icon img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
}

.file-preview-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.file-details h4 {
  margin: 0 0 5px 0;
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
}

.file-details p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.file-remove-btn {
  margin-left: auto;
  padding: 9px;
  background: #fee2e2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.file-remove-btn:hover {
  background: #fecaca;
  transform: scale(1.05);
}

/* Progress area */
.progress-area{
  margin: 20px 0;
  transition: all 0.35s ease;
  opacity: 0;
  visibility: hidden;
}

.progress-area.visible{ 
  opacity: 1; 
  visibility: visible; 
}

.progress-wrapper{ 
  height: 100%;
  display: flex;
  align-items: center;
}

.progress-bar{
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0b3d91, #2563eb);
  transition: all 0.2s linear;
  border-radius: 999px;
}

/* Submit button */
.submit-btn{
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b3d91 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #072a63 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(11, 61, 145, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}