/* ==========================================================================
   ELIM BIBLE COLLEGE STUDENT PORTAL — DASHBOARD ENHANCEMENTS
   ========================================================================== */

/* 1. Layout Widening & Usable Space */
.tutor-dashboard-layout {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

.tutor-dashboard-main {
    flex: 1 !important;
    min-width: 0 !important;
}

.tutor-dashboard-content-inner {
    max-width: 100% !important;
    width: 100% !important;
}

/* Widen the Continue Learning course cards to utilize space */
.tutor-progress-card {
    max-width: 100% !important;
    width: 100% !important;
}

/* Responsive adjustments for layout padding */
@media (max-width: 768px) {
    .tutor-dashboard-layout {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* 2. Sidebar Branding Upgrade (Matches Courses Page) */
.tutor-dashboard-sidebar-logo {
    padding: 24px 20px !important;
    border-bottom: 1px solid #edf2f7 !important;
    margin-bottom: 16px !important;
    display: block !important;
    text-decoration: none !important;
}

.tutor-dashboard-sidebar-logo .site-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #1a365d !important; /* Premium Navy Blue */
    letter-spacing: -0.02em !important;
    display: block !important;
    text-transform: none !important;
    white-space: nowrap !important; /* Force to one line, consistent with Courses */
}

/* 3. Custom Sidebar Menu Icons Alignments */
.tutor-dashboard-sidebar-nav ul li a svg {
    margin-right: 12px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.tutor-dashboard-sidebar-nav ul li a:hover svg {
    color: #3e64ff !important;
}

/* 4. Compact Student Dashboard Statistics Summary Cards */
.tutor-student-dashboard-stats .tutor-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.tutor-student-dashboard-stats .tutor-stat-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important; /* Reduced padding */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-decoration: none !important;
    min-height: 0 !important;
    transition: all 0.2s ease !important;
}

.tutor-student-dashboard-stats .tutor-stat-card:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

.tutor-student-dashboard-stats .tutor-stat-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

.tutor-student-dashboard-stats .tutor-stat-card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important; /* Label size to 13px */
    font-weight: 500 !important; /* Font weight to 500 */
    color: #64748b !important; /* Muted Slate */
    margin: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

@media (max-width: 1200px) {
    .tutor-student-dashboard-stats .tutor-stat-card-title {
        white-space: normal !important;
    }
}

.tutor-student-dashboard-stats .tutor-stat-card-icon {
    background: #f1f5f9 !important;
    color: #64748b !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.tutor-student-dashboard-stats .tutor-stat-card-icon svg {
    width: 12px !important;
    height: 12px !important;
}

.tutor-student-dashboard-stats .tutor-stat-card-content {
    margin-top: 2px !important;
}

.tutor-student-dashboard-stats .tutor-stat-card-value {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px !important; /* Value size to 20px */
    font-weight: 700 !important;
    color: #0f172a !important; /* Dark Slate */
    line-height: 1 !important;
}

/* 5. Payments Page Compact Design */
.ebc-payment-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ebc-payment-stat-card {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ebc-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ebc-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ebc-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.ebc-stat-value.status-paid {
    color: #0d9488 !important; /* Premium Teal for Paid */
}

.ebc-stat-value.status-pending {
    color: #2563eb !important; /* Elegant Blue for Pending */
}

.ebc-stat-value.status-due {
    color: #d97706 !important; /* Amber for Due */
}

/* Tabs structure inside the card */
.tutor-card {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    overflow: hidden !important;
}

.ebc-payment-tabs-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ebc-tab-btn {
    padding: 14px 24px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.ebc-tab-btn:hover {
    color: #3e64ff !important;
}

.ebc-tab-btn.active {
    color: #3e64ff !important;
    border-bottom: 2px solid #3e64ff !important;
    background: #fff;
}

/* Tables styling on payments page */
.ebc-tab-content {
    padding: 20px !important;
}

.tutor-table-responsive {
    border-radius: 8px !important;
    border: 1px solid #edf2f7 !important;
    overflow: hidden !important;
}

.tutor-table {
    margin-bottom: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.tutor-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-align: left !important;
}

.tutor-table td {
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

.tutor-table tr:last-child td {
    border-bottom: none !important;
}

/* Pay button styling */
.tutor-btn-sm.ebc-pay-btn {
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tutor-btn-sm.ebc-pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 100, 255, 0.2);
}

/* 6. Standardized Page Heading System */
.ebc-dashboard-heading-wrap {
    margin-bottom: 24px !important; /* Subtly defined gap */
}

.ebc-dashboard-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 24px !important; /* Visual reference value matches Exam page baseline */
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em !important;
}
