/* SIPENA YPI - Modern Professional Theme */

:root {
    /* Primary Colors - Corporate Blue-Teal */
    --primary-color: #0F766E;      /* Teal 700 */
    --primary-hover: #0D9488;      /* Teal 600 */
    --primary-light: #CCFBF1;      /* Teal 100 */
    --primary-dark: #134E4A;       /* Teal 800 */

    --secondary-color: #1E40AF;     /* Blue 800 */
    --success-color: #059669;       /* Emerald 600 */
    --danger-color: #DC2626;        /* Red 600 */
    --warning-color: #D97706;       /* Amber 600 */
    --info-color: #0284C7;          /* Sky 600 */

    /* Neutral Colors - Professional palette */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Gradients - Natural & Corporate */
    --gradient-primary: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --gradient-info: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
    --gradient-warm: linear-gradient(135deg, #EA580C 0%, #F97316 100%);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;

    /* Shadows - Natural */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 30px -5px rgba(15, 118, 110, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ==================== PUBLIC NAVBAR ==================== */
.public-navbar {
    background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-circle i {
    font-size: 24px;
    color: white;
}

.navbar-brand {
    color: white;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-datetime {
    text-align: right;
    color: white;
}

.navbar-date {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.navbar-time {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-date i,
.navbar-time i {
    opacity: 0.9;
}

.public-body {
    min-height: 100vh;
    background-color: var(--gray-50);
}

.public-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 160px);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .navbar-left {
        width: 100%;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
    }

    .logo-circle i {
        font-size: 18px;
    }

    .navbar-title {
        font-size: 1.1rem;
    }

    .navbar-subtitle {
        font-size: 0.75rem;
    }

    .navbar-right {
        width: 100%;
    }

    .navbar-datetime {
        text-align: left;
        width: 100%;
    }

    .navbar-date,
    .navbar-time {
        justify-content: flex-start;
    }

    .navbar-date {
        font-size: 0.85rem;
    }

    .navbar-time {
        font-size: 1.1rem;
    }

    .public-container {
        padding: 1.5rem 1rem;
    }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    border-right: 1px solid var(--gray-200);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.sidebar-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.avatar {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.avatar-small {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.brand {
    flex: 1;
    min-width: 0;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.brand-small .brand-title {
    font-size: 17px;
    color: var(--gray-900);
    font-weight: 700;
}

.brand-small .brand-subtitle {
    font-size: 12px;
    color: var(--gray-600);
}

.sidebar-nav {
    padding: 20px 16px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    background-color: transparent;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.sidebar-nav .nav-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--gray-500);
    transition: color 0.2s ease;
}

.sidebar-nav .nav-link span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.sidebar-nav .nav-link:hover i {
    color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav .nav-link.active i {
    color: var(--primary-color);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease-in-out;
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

.top-header {
    background-color: var(--white);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.datetime-info {
    text-align: right;
    color: var(--gray-700);
}

.current-date {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.current-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.datetime-info i {
    color: var(--primary-color);
}

.btn-logout {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-logout:hover {
    background-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.content-wrapper {
    flex: 1;
    padding: 32px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer {
    background: white;
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-600);
    margin-top: auto;
    width: 100%;
}
    box-sizing: border-box;
}

/* ==================== MENU GRID PAGE ==================== */
.menu-page {
    width: 100%;
    max-width: 100%;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--gray-900);
    border-color: var(--primary-color);
}

.menu-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.2s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.05);
}

.menu-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* ==================== GURU LAYOUT (No Sidebar) ==================== */
.guru-layout {
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.guru-navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.school-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.school-logo {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.school-name {
    color: white;
}

.school-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.school-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.guru-content {
    flex: 1;
    padding: 28px;
    max-width: 100%;
    width: 100%;
}

.guru-content .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== MOBILE MENU ==================== */
.mobile-toggle {
    display: none;
    background: transparent;
    color: var(--gray-700);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    color: var(--primary-color);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: 28px;
}

.page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 i {
    color: var(--primary-color);
}

.page-header p {
    color: var(--gray-600);
    font-size: 15px;
}

/* ==================== ACTION BAR ==================== */
.action-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ==================== DASHBOARD CARDS ==================== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border-left: 4px solid var(--primary-color);
    width: 100%;
    box-sizing: border-box;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-600) !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: var(--gray-700) !important;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #B91C1C !important;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color) !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #047857 !important;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--warning-color) !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #B45309 !important;
    transform: translateY(-1px);
}

.btn-info {
    background-color: var(--info-color) !important;
    color: white !important;
}

.btn-info:hover {
    background-color: #0369A1 !important;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-900);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.card-header i {
    color: var(--primary-color);
    font-size: 16px;
}

.card-body {
    padding: 20px;
    width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.table {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
    min-width: 800px; /* Ensure table has minimum width for proper scrolling */
}

.table thead {
    background-color: var(--gray-50);
}

.table thead th {
    color: var(--gray-700);
    font-weight: 600;
    border: none;
    padding: 14px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-top: 1px solid var(--gray-200);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* ==================== FORMS ==================== */
.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 15px;
}

.form-text {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 6px;
}

/* ==================== ALERTS ==================== */
.alert {
    border-radius: 10px;
    padding: 14px 18px;
    border: none;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.alert-info {
    background-color: #CFFAFE;
    color: #155E75;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bg-success {
    background-color: var(--success-color) !important;
    color: white !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
    color: white !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.bg-info {
    background-color: var(--info-color) !important;
    color: white !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.bg-secondary {
    background-color: var(--gray-600) !important;
    color: white !important;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination .page-link {
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 44px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
}
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .avatar {
    margin: 0 auto 16px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.login-header p {
    color: var(--gray-600);
    font-size: 15px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .card-body {
        padding: 20px;
    }

    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-visible {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .content-wrapper {
        padding: 16px 12px;
    }

    .top-header {
        padding: 12px 14px;
        height: auto;
    }

    .header-left {
        gap: 8px;
    }

    .header-right {
        padding-right: 10px;
    }

    .datetime-info {
        font-size: 12px;
    }

    .current-date {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .current-time {
        font-size: 15px;
    }

    .brand-small .brand-title {
        font-size: 15px;
    }

    .brand-small .brand-subtitle {
        display: none;
    }

    .btn-logout span {
        display: none;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .page-header p {
        font-size: 13px;
    }

    /* Dashboard cards tetap grid 2-3 kolom di mobile */
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .action-bar {
        flex-direction: column;
        gap: 8px;
    }

    .action-bar .btn {
        width: 100%;
        justify-content: center;
    }

    .card {
        margin-bottom: 14px;
    }

    .card-header {
        padding: 12px 14px;
        font-size: 14px;
    }

    .card-body {
        padding: 14px 12px;
    }

    /* Table tetap jadi table di mobile (TIDAK jadi card) */
    .table {
        font-size: 12px;
    }

    .table thead th {
        padding: 10px 8px;
        font-size: 11px;
    }

    .table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .btn-group {
        display: flex;
        gap: 6px;
        justify-content: center;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .table td.text-center,
    .table th.text-center {
        white-space: nowrap;
    }

    .stat-card {
        padding: 16px;
        min-height: 100px;
    }

    .stat-card h3 {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .stat-card .stat-number {
        font-size: 26px;
    }

    /* Form responsive */
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control, .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn {
        font-size: 14px;
        padding: 9px 16px;
    }

    .btn-sm {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Row & Col responsive */
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }

    .g-3 {
        gap: 12px !important;
    }

    /* Alert responsive */
    .alert {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Badge responsive */
    .badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Footer responsive */
    .footer {
        padding: 14px 12px;
        font-size: 12px;
    }

    /* Image responsive */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    .content-wrapper {
        padding: 12px 10px;
    }

    .top-header {
        padding: 10px 12px;
    }

    .page-header h2 {
        font-size: 18px;
    }

    .page-header p {
        font-size: 12px;
    }

    .card-header {
        padding: 10px 12px;
        font-size: 13px;
    }

    .card-body {
        padding: 12px 10px;
    }

    /* Dashboard cards tetap 2 kolom di mobile kecil */
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Menu grid jadi 2 kolom di mobile */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .menu-item {
        padding: 20px 12px;
    }

    .menu-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .menu-label {
        font-size: 13px;
    }

    /* Guru Navbar Responsive */
    .guru-navbar {
        padding: 0 16px;
        height: 60px;
    }

    .school-logo {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .school-title {
        font-size: 16px;
    }

    .school-subtitle {
        font-size: 11px;
    }

    .guru-content {
        padding: 16px 12px;
    }

    .btn-logout span {
        display: none;
    }

    .btn-logout {
        padding: 8px 12px;
    }

    .stat-card {
        padding: 12px;
        min-height: 90px;
    }

    .stat-card h3 {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .stat-card .stat-number {
        font-size: 22px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .footer {
        font-size: 11px;
        padding: 12px 10px;
    }

    .btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    .btn-sm {
        font-size: 11px;
        padding: 5px 10px;
    }

    .form-control, .form-select {
        font-size: 13px;
        padding: 9px 11px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 12px;
    }

    .table {
        font-size: 11px;
    }

    .table thead th {
        padding: 8px 6px;
        font-size: 10px;
    }

    .table tbody td {
        padding: 8px 6px;
        font-size: 11px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.rounded { border-radius: 8px; }
.rounded-circle { border-radius: 50%; }
