/* ============================================================
   PAGE-SPECIFIC STYLES — All Internal Pages
   Repositori Skripsi FH UM Sumatera Barat
   ============================================================ */

/* ── Stat / Status Cards ── */
.status-card,.stats-card{border-radius:12px;padding:1.1rem 1.25rem;position:relative;overflow:hidden;transition:transform .25s,box-shadow .25s;border:none;height:100%;}
.status-card:hover,.stats-card:hover{transform:translateY(-4px);box-shadow:0 20px 25px rgba(0,0,0,.1),0 10px 10px rgba(0,0,0,.04);}
.status-card::before,.stats-card::before{content:'';position:absolute;top:-40%;right:-20%;width:110%;height:110%;background:rgba(255,255,255,.07);border-radius:50%;}
.status-number{font-size:1.9rem;font-weight:900;line-height:1;margin-bottom:.2rem;}
.status-card i.fa-2x,.stats-card i.fa-2x{position:absolute;right:1rem;top:50%;transform:translateY(-50%);opacity:.18;font-size:2.5rem!important;}

/* ── Filter Section ── */
.filter-section{background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;padding:1.25rem;margin-bottom:1.25rem;box-shadow:0 1px 3px rgba(0,0,0,.06);}
.filter-section .form-label{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#475569;}

/* ── Table Priority Rows ── */
.priority-high{background:rgba(255,241,242,.5)!important;}
.priority-high:hover{background:rgba(255,241,242,.8)!important;}
.priority-high td:first-child{border-left:3px solid #dc2626;}
.priority-medium{background:rgba(255,251,235,.5)!important;}
.priority-medium:hover{background:rgba(255,251,235,.8)!important;}
.priority-medium td:first-child{border-left:3px solid #d97706;}
.priority-low td:first-child{border-left:3px solid transparent;}

/* ── Action Buttons ── */
.action-buttons{display:flex;gap:.3rem;flex-wrap:wrap;align-items:center;}
.action-buttons .btn-sm{padding:.3rem .55rem;font-size:.75rem;border-radius:6px;}

/* ── Status / Custom Badges ── */
.badge-status{font-size:.68rem;font-weight:700;padding:.32rem .65rem;border-radius:50rem;}
.bg-purple{background:linear-gradient(135deg,#7c3aed,#a78bfa)!important;color:#fff!important;}

/* ── Empty State ── */
.empty-state{text-align:center;padding:3.5rem 1.5rem;color:#64748b;}
.empty-state i{font-size:3rem;margin-bottom:1rem;opacity:.35;}
.empty-state h5{font-size:1rem;font-weight:700;color:#334155;margin-bottom:.5rem;}
.empty-state p{font-size:.875rem;}

/* ── Section Header inside cards ── */
.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid #f1f5f9;flex-wrap:wrap;gap:.5rem;}
.section-header h5,.section-header h6{margin:0;font-weight:800;color:#1e293b;}

/* ── Info Table ── */
.info-table{width:100%;border-collapse:separate;}
.info-table th{font-size:.78rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.3px;padding:.65rem .75rem;width:35%;background:transparent;border:none;border-bottom:1px solid #f1f5f9;white-space:nowrap;vertical-align:top;}
.info-table td{font-size:.875rem;color:#1e293b;font-weight:500;padding:.65rem .75rem;border-bottom:1px solid #f1f5f9;vertical-align:top;}
.info-table tr:last-child th,.info-table tr:last-child td{border-bottom:none;}

/* ── Card Header gradient variants ── */
.card-header.bg-danger{background:linear-gradient(135deg,#dc3545,#e8526d)!important;border:none;}
.card-header.bg-success{background:linear-gradient(135deg,#16a34a,#22c55e)!important;border:none;}
.card-header.bg-info{background:linear-gradient(135deg,#0284c7,#38bdf8)!important;border:none;}
.card-header.bg-warning{background:linear-gradient(135deg,#d97706,#f59e0b)!important;border:none;}
.card-header.bg-secondary{background:linear-gradient(135deg,#475569,#64748b)!important;border:none;}
.card-header.bg-primary{background:linear-gradient(135deg,#2563eb,#3b82f6)!important;border:none;}
/* Override the inner h5/h6 color in colored headers */
.card-header.bg-danger *,.card-header.bg-success *,.card-header.bg-info *,.card-header.bg-warning *,.card-header.bg-secondary *,.card-header.bg-primary *{color:#fff!important;}
.card-header[class*="bg-"] .badge{color:inherit!important;}

/* ── Form Section ── */
.form-section{background:#f8fafc;border:1.5px solid #f1f5f9;border-radius:10px;padding:1.1rem 1.25rem;margin-bottom:1.25rem;}
.form-section-title{font-size:.78rem;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.5px;margin-bottom:1rem;padding-bottom:.6rem;border-bottom:2px solid #e2e8f0;display:flex;align-items:center;gap:.5rem;}
.form-section-title i{color:#dc3545;}

/* ── Modal Header Variants ── */
.modal-header.bg-warning{background:linear-gradient(135deg,#d97706,#f59e0b)!important;border:none;}
.modal-header.bg-warning .modal-title{color:#fff!important;}
.modal-header.bg-warning .btn-close{filter:brightness(0) invert(1);}
.modal-header.bg-success{background:linear-gradient(135deg,#16a34a,#22c55e)!important;border:none;}
.modal-header.bg-success .btn-close{filter:brightness(0) invert(1);}

/* ── Notice Box ── */
.notice-box{display:flex;gap:.85rem;align-items:flex-start;padding:.9rem 1rem;border-radius:10px;font-size:.875rem;margin-bottom:1rem;}
.notice-box .notice-icon{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0;}
.nb-info{background:#f0f9ff;}.nb-info .notice-icon{background:#bae6fd;color:#0369a1;}
.nb-warning{background:#fffbeb;}.nb-warning .notice-icon{background:#fde68a;color:#92400e;}
.nb-success{background:#f0fdf4;}.nb-success .notice-icon{background:#bbf7d0;color:#166534;}
.nb-danger{background:#fff1f2;}.nb-danger .notice-icon{background:#fecdd3;color:#991b1b;}
.notice-box-body h6{font-size:.85rem;font-weight:700;margin:0 0 .25rem;}
.notice-box-body p{font-size:.82rem;color:#64748b;margin:0;line-height:1.6;}

/* ── Period / Announcement Card ── */
.period-card{background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1.5px solid #bfdbfe;border-radius:12px;padding:1.1rem 1.25rem;}
.period-card .period-label{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#1d4ed8;margin-bottom:.35rem;}
.period-card .period-value{font-size:.9rem;font-weight:700;color:#1e293b;}
.period-card .period-date{font-size:.78rem;color:#64748b;margin-top:.25rem;}

/* ── Responsive ── */
@media(max-width:768px){
  .status-card,.stats-card{padding:.9rem 1rem;}
  .status-number{font-size:1.5rem;}
  .action-buttons{gap:.2rem;}
  .info-table th{width:38%;font-size:.72rem;padding:.5rem .6rem;}
  .info-table td{font-size:.82rem;padding:.5rem .6rem;}
  .form-section{padding:.9rem;}
  .section-header{flex-direction:column;align-items:flex-start;}
  .notice-box{gap:.6rem;}
}
@media(max-width:480px){
  .status-card i.fa-2x{display:none;}
}
