/**
 * Global typography scale — larger base fonts for admin + frontend + panel
 */
html {
    font-size: 17px !important;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 15px !important;
    line-height: 1.65 !important;
}

/* Frontend utility classes (rem-based in app.css) */
.font-10 { font-size: 0.75rem !important; }
.font-12 { font-size: 0.875rem !important; }
.font-14 { font-size: 1rem !important; }
.font-16 { font-size: 1.0625rem !important; }
.font-18 { font-size: 1.125rem !important; }
.font-20 { font-size: 1.25rem !important; }

@media (max-width: 767px) {
    html {
        font-size: 16px !important;
    }

    body {
        font-size: 15px !important;
    }

    .font-16 {
        font-size: 1rem !important;
    }
}

/* Common UI text */
.nav-link,
.navbar,
.dropdown-item,
.form-control,
.custom-select,
.btn,
.table,
.badge,
.breadcrumb,
.sidebar,
.sidenav,
.main-sidebar,
.card,
.section-title,
.input-label,
label {
    font-size: inherit;
}

/* Persian / Gregorian datepickers above SweetAlert modals */
.datepicker-plot-area,
.daterangepicker {
    z-index: 20050 !important;
}

.swal2-container {
    z-index: 10000 !important;
}

.form-control,
.custom-select,
select.form-control:not([size]):not([multiple]),
.custom-file-label {
    font-size: 15px !important;
}

.btn {
    font-size: 15px !important;
}

.btn-sm {
    font-size: 13px !important;
}

.table td,
.table th,
.table thead th {
    font-size: 14px !important;
}

/* Admin panel specifics */
body.rtl,
body {
    letter-spacing: 0;
}

.main-sidebar .sidebar-menu li a,
.navbar .nav-link,
.section .section-header h1 {
    font-size: 15px !important;
}

.card .card-header h4,
.card .card-header .card-header-title {
    font-size: 16px !important;
}

/* Panel (teacher/student) */
.panel-sidebar,
.panel-content,
.webinar-card,
.stat-item {
    font-size: 15px;
}
