/* =============================================
   SAKIYA PARENT PORTAL — Sleek Mobile Theme
   my.sakiya.id
   ============================================= */

/* Hide default Filament sidebar, topbar, and default bulky headers */
.fi-sidebar { display: none !important; }
.fi-sidebar-nav { display: none !important; }
.fi-topbar { display: none !important; }
.fi-page-header { display: none !important; }
.fi-header { display: none !important; }

/* Body & Background (Warm Soft Slate Tone) */
body {
    padding-top: 0 !important;
    background-color: #f1f5f9 !important;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    color: #1e293b;
}
.fi-layout { padding-top: 0 !important; }

/* Unified Responsive Container (Expanded Width) */
.fi-main-ctn {
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    padding-bottom: 80px !important;
    min-height: 100vh;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

/* Page Content Padding (Generous card width) */
.fi-page { 
    padding: 10px 14px 14px !important; 
}

/* =============================================
   BOTTOM NAVIGATION BAR
   ============================================= */
#sakiya-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 56px;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.sakiya-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: #64748b;
    font-size: 9.5px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
    min-width: 48px;
}

.sakiya-nav-item svg {
    width: 19px;
    height: 19px;
    stroke: #64748b;
    transition: stroke 0.15s ease;
}

.sakiya-nav-item.active {
    color: #059669;
    font-weight: 700;
}

.sakiya-nav-item.active svg {
    stroke: #059669;
}

/* =============================================
   PAGE ELEMENTS & COMPACT TYPOGRAPHY
   ============================================= */
.sakiya-page-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 1px 0;
}

.sakiya-page-subtitle {
    font-size: 11.5px;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.sakiya-section-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 10px 0 5px;
}

/* NADI-Style Tab Grid & Card (Responsive 1 Row) */
.sakiya-tab-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sakiya-tab-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sakiya-tab-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 7px 2px !important;
    border-radius: 9px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.sakiya-tab-card svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.sakiya-tab-card span {
    font-size: 10px !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
}

.sakiya-tab-card.active,
.sakiya-tab-card[data-active="true"] {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 3px 8px rgba(5,150,105,0.25) !important;
}

.sakiya-tab-card.active svg,
.sakiya-tab-card[data-active="true"] svg {
    stroke: #ffffff !important;
}

/* Student card on Dashboard */
.sakiya-student-card {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    border-radius: 14px;
    padding: 14px 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.2);
}

.sakiya-student-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.sakiya-student-avatar img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.sakiya-student-info h3 {
    font-size: 14.5px;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 2px;
    line-height: 1.2;
}

div[style*="#047857"] h3,
div[style*="#047857"] h2,
div[style*="#059669"] h3 {
    color: #ffffff !important;
    font-weight: 800 !important;
}


.sakiya-student-info p {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Summary cards row */
.sakiya-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.sakiya-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sakiya-summary-card .label {
    font-size: 9px;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.sakiya-summary-card .value {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
}

.sakiya-summary-card .value.danger { color: #dc2626; }
.sakiya-summary-card .value.success { color: #059669; }

/* Invoice & Payment card */
.sakiya-invoice-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 8px;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sakiya-invoice-item .title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.sakiya-invoice-item .subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.sakiya-invoice-item .amount {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
}

.sakiya-invoice-item .badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
}

.sakiya-badge-paid    { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sakiya-badge-overdue { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.sakiya-badge-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.sakiya-badge-partial { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Announcement item */
.sakiya-announcement {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.sakiya-announcement .ann-type {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
}

.sakiya-announcement .ann-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
}

.sakiya-announcement .ann-date {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

/* Pay Button */
.sakiya-pay-btn {
    display: block;
    width: 100%;
    background: #059669;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(5,150,105,0.22);
}

.sakiya-pay-btn:active { transform: scale(0.98); background: #047857; }

/* Download Kuitansi button */
.sakiya-download-btn {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.sakiya-download-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Empty state */
.sakiya-empty {
    text-align: center;
    padding: 30px 16px;
    color: #94a3b8;
}

.sakiya-empty svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    stroke: #cbd5e1;
}

/* Responsive Desktop Wrapper */
@media (min-width: 640px) {
    body {
        background: #e2e8f0 !important;
    }
}
