/* ==========================================================================
   Global Styles
   ========================================================================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fix for code tags in LaTeX guide */
code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63384;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Ensure textareas don't inherit code styles */
textarea {
    font-family: inherit !important;
    white-space: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Specific fix for modal textareas */
.modal textarea,
#questionText,
#examDescription {
    display: block;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Login Page
   ========================================================================== */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.login-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.login-header h2 {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    background: #ffebee;
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.btn-google {
    background: white;
    color: #555;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-google:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Phone Login Button */
.btn-secondary {
    margin-top: 10px;
}

/* reCAPTCHA Container */
#recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#recaptcha-container > div {
    transform: scale(0.9);
    transform-origin: 0 0;
}

@media (max-width: 480px) {
    #recaptcha-container > div {
        transform: scale(0.77);
    }
}

/* OTP Input Styling */
#otpCode {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

#otpCode:focus {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ==========================================================================
   Main App Layout
   ========================================================================== */
.main-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar-header h3 {
    font-size: 20px;
    color: var(--primary-color);
    flex: 1;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #7f8c8d;
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #555;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    gap: 12px;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
}

.nav-item:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.header h1 {
    font-size: 24px;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* ==========================================================================
   Pages
   ========================================================================== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header-content h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-header-content p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
}

.stat-details h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.stat-details p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* ==========================================================================
   Dashboard Grid
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.dashboard-card.chart-card {
    min-height: 350px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    padding: 8px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

.search-box i {
    color: #7f8c8d;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* ==========================================================================
   Status Summary
   ========================================================================== */
.status-summary {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    box-shadow: var(--box-shadow);
}

.status-item {
    text-align: center;
}

.status-count {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.status-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* ==========================================================================
   Items Grid & List
   ========================================================================== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.badge-info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info-color);
}

.badge-danger {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.item-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #7f8c8d;
}

.item-meta i {
    margin-right: 5px;
}

/* ==========================================================================
   Data Table
   ========================================================================== */
.data-table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f5f7fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #f5f7fa;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #ecf0f1;
    color: #555;
}

.btn-secondary:hover:not(:disabled) {
    background: #d5dbdb;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 67, 54, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #388e3c;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    color: #555;
    border-radius: 8px;
    position: relative;
}

.btn-icon:hover {
    background: #e0e0e0;
}

.btn-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger-color);
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-logout {
    width: 100%;
    justify-content: center;
    background: #ffebee;
    color: var(--danger-color);
}

.btn-logout:hover {
    background: #ffcdd2;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Prevent question modal from closing when clicking outside */
#questionModal.active {
    pointer-events: auto;
}

#questionModal.active .modal-content {
    pointer-events: auto;
}

/* Make sure modal backdrop doesn't respond to clicks for question modal */
#questionModal.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* Additional protection: Make question modal backdrop completely non-interactive */
#questionModal.active {
    background-color: rgba(0, 0, 0, 0.5);
}

#questionModal.active:hover {
    cursor: default;
}

/* Ensure modal content is always interactive */
#questionModal.active .modal-content {
    pointer-events: auto;
    cursor: default;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-large {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: #f5f7fa;
    color: #2c3e50;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    word-wrap: normal;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.required {
    color: var(--danger-color);
}

/* ==========================================================================
   Questions & Answers
   ========================================================================== */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

/* Hide answers section for essay exams */
#answersSection.hidden {
    display: none !important;
}

.question-item {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.question-number {
    font-weight: 600;
    color: var(--primary-color);
}

.question-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.question-meta {
    font-size: 12px;
    color: #7f8c8d;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.answer-item {
    background: #f5f7fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: start;
}

.answer-item input[type="text"] {
    flex: 1;
}

.answer-item input[type="checkbox"] {
    margin-top: 12px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.loading-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 16px;
}

.text-muted {
    color: #7f8c8d;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .header {
        padding: 0 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .content {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .stat-details h3 {
        font-size: 24px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select,
    .search-box {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .status-summary {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .card-body {
        padding: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .sidebar,
    .header,
    .filter-bar,
    .page-header button,
    .btn,
    .modal {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .content {
        padding: 0;
    }
}

