/* Custom Styles for SaroSchool - Modern Blue/White Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #06b6d4;
    --dark-color: #1e293b;
    --light-bg: #f1f5f9;
    --white: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    --sidebar-width: 270px;
    --header-height: 70px;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

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

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.sidebar .logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar .logo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.sidebar .logo-text {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar .logo-text span {
    color: #60a5fa;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    margin: 4px 12px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar .menu-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.5rem 1.5rem 0.5rem;
    font-weight: 600;
}

/* Main Content */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.top-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    width: 100%;
    padding: 1.5rem;
    background: var(--light-bg);
}

.top-header .school-name,
.top-header .menu-toggle,
.top-header .search-box .form-control,
.top-header .header-icon-btn,
.top-header .admin-profile,
.top-header .admin-info .admin-name,
.top-header .admin-info .admin-role,
.top-header .admin-info .fas-chevron-down {
    color: #fff !important;
}

.top-header .search-box .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.top-header .search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.top-header .header-icon-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.top-header .header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.top-header .admin-profile {
    background: rgba(255, 255, 255, 0.15);
}

.top-header .admin-profile:hover {
    background: rgba(255, 255, 255, 0.25);
}

.top-header .notification-badge {
    background: #ef4444;
    border-color: #1e3a8a;
}

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

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--light-bg);
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

.header-school-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-school-info .school-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.school-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

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

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.search-box {
    display: flex;
}

.search-box .form-control {
    width: 250px;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.875rem;
}

.search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    color: #fff;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-profile:hover {
    background: rgba(255, 255, 255, 0.25);
}

.admin-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.admin-info {
    text-align: left;
    color: #fff;
}

.admin-info .admin-name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    color: #fff;
}

.admin-info .admin-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.admin-profile .fa-chevron-down {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #1e3a8a;
}

.header-school-info .school-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.school-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.school-tagline {
    font-size: 0.75rem;
    color: #64748b;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: var(--light-bg);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.header-icon-btn.text-danger:hover {
    background: var(--danger-color);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    background: var(--light-bg);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-profile:hover {
    background: #e2e8f0;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-info {
    text-align: left;
}

.admin-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
    line-height: 1.2;
}

.admin-role {
    font-size: 0.7rem;
    color: #64748b;
}

/* Page Content */
.page-content {
    width: 100%;
}

/* Page Header */
.page-header {
    background: transparent;
    padding: 0 0 1.5rem 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.stats-card .stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-card .stats-number.text-success { color: #10b981; }
.stats-card .stats-number.text-danger { color: #ef4444; }
.stats-card .stats-number.text-warning { color: #f59e0b; }
.stats-card .stats-number.text-info { color: #0ea5e9; }

.stats-card .stats-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stats-card .stats-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.stats-card .stats-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stats-card .stats-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stats-card .stats-icon.students {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.stats-card .stats-icon.teachers {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stats-card .stats-icon.attendance {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.stats-card .stats-icon.sms {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stats-card .stats-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stats-card .stats-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.stats-card .stats-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stats-card .stats-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Search Box */
.search-box .form-control {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: var(--light-bg);
    font-size: 0.875rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #64748b;
    border-color: #64748b;
    border-radius: 10px;
}

.btn-success { background: #10b981; border-color: #10b981; }
.btn-danger { background: #ef4444; border-color: #ef4444; }
.btn-warning { background: #f59e0b; border-color: #f59e0b; }
.btn-info { background: #0ea5e9; border-color: #0ea5e9; }

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 1rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
}

.modal-header .btn-close {
    border-radius: 50%;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 16px 16px;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.5rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 2rem; }

.avatar-primary { background: rgba(37, 99, 235, 0.1); color: var(--primary-color); }
.avatar-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.avatar-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.avatar-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.avatar-info { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }

/* Badge */
.bg-primary-subtle {
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary-color);
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981;
}

.bg-info-subtle {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4;
}

.bg-secondary-subtle {
    background-color: rgba(107, 114, 128, 0.1) !important;
    color: #6b7280;
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.card-header.bg-white {
    background: #fff !important;
}

.card-body {
    padding: 1.5rem;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Stats Cards */
.stats-card {
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.progress-bar {
    border-radius: 4px;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Alert */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: #059669; }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.alert-info { background: rgba(14, 165, 233, 0.1); color: #0284c7; }

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1628;
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.login-page::before {
    width: 600px;
    height: 600px;
    background: #1e3a8a;
    opacity: 0.4;
    top: -200px;
    left: -200px;
}

.login-page::after {
    width: 500px;
    height: 500px;
    background: #1e40af;
    opacity: 0.4;
    bottom: -150px;
    right: -150px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 100px rgba(30, 58, 138, 0.3);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    padding: 2.5rem 2rem;
    text-align: center;
}

.login-header .logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.login-body {
    padding: 2rem;
}

/* Animations */
.pagination {
    margin-top: 1rem;
}

.page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    color: var(--dark-color);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 270px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .main-content {
        width: 100%;
    }
    
    .top-header {
        padding: 0 1rem;
    }
    
    .header-school-info .school-name {
        display: none;
    }
    
    .search-box {
        display: none !important;
    }
    
    .admin-info {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .page-content {
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1.25rem;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .header-school-info {
        display: none;
    }
}

/* Print Styles */
@media print {
    .sidebar, .top-header, .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* SMS Module Styles */
.sms-tabs {
    background: #fff;
    border-radius: 12px;
    padding: 0.35rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 1.5rem;
}
.sms-tabs .nav-link {
    border: none;
    border-radius: 9px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.sms-tabs .nav-link:hover {
    color: var(--primary-color);
    background: #f0f4ff;
}
.sms-tabs .nav-link.active {
    color: #fff !important;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.sms-tabs .nav-link .sms-tab-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.sms-tabs .nav-link:not(.active) .sms-tab-badge {
    background: #dbeafe;
    color: var(--primary-color);
}

.sms-badge-masking { background: #e0e7ff; color: #4f46e5; }
.sms-badge-nonmasking { background: #fef3c7; color: #b45309; }

.sms-placeholder-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-color);
    padding: 0.12rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    margin: 1px;
    transition: all 0.2s;
    border: 1px solid #dbeafe;
}
.sms-placeholder-badge:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.sms-template-preview {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.sms-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
}
.sms-tip-card strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.15rem;
}
.sms-tip-card span {
    color: #64748b;
    font-size: 0.75rem;
}

.sms-char-progress {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    max-width: 120px;
}
.sms-char-progress .bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.2s, background 0.2s;
}

.sms-activity-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.sms-activity-progress .bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.empty-state-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
