/* ==========================================
   SBO FORM SYSTEM - RESPONSIVE STYLESHEET
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container-fluid {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-content {
    padding: 30px 20px;
    margin-left: 250px;
    margin-top: 70px;
    width: calc(100% - 250px);
    min-height: calc(100vh - 70px);
}

.sidebar.collapsed~.navbar,
.sidebar.collapsed~.main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* ==========================================
   NAVBAR / HEADER
   ========================================== */

.navbar {
    padding: 0;
    background: white !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 900;
    width: calc(100% - 250px);

}

.sidebar.collapsed~.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    margin-left: 70px;
    width: calc(100% - 70px);

}

.navbar.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.navbar-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 70px;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.navbar-menu {
    display: none !important;
    /* Hide navbar menu on all screen sizes, use sidebar instead */
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.navbar.bg-light .nav-link {
    color: #333;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.username {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.navbar.bg-light .username {
    color: #333;
}

.datetime-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar.bg-light .datetime-display {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.datetime-display i {
    font-size: 14px;
}

.btn-logout-mobile {
    display: none;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: var(--warning-color);
    color: black;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white;
}

/* Light navbar - dark text for logout button */
.navbar-light .btn-logout {
    color: var(--dark-color) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.navbar-light .btn-logout:hover {
    background: rgba(0, 0, 0, 0.2) !important;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 25px;
    font-size: 16px;
}

.btn-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

.w-100 {
    width: 100%;
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

/* ==========================================
   ALERTS
   ========================================== */

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-dismissible {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: black;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card-header {
    padding: 20px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   TABLES
   ========================================== */

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead {
    background: var(--light-color);
}

.table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: rgba(0, 123, 255, 0.03);
}

/* ==========================================
   AUTHENTICATION PAGE
   ========================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
}

.auth-header p {
    color: #666;
    margin: 0;
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-form h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   DASHBOARD STATS
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.users {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.courses {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.forms {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.submissions {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-icon.approved {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.stat-content h3 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 25px;
    margin-top: 20px;
}

.section-header h1 {
    margin: 0;
    color: #333;
    font-size: 28px;
    margin-bottom: 5px;
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: var(--shadow-sm);
}

.quick-actions h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================
   USER INFO
   ========================================== */

.user-info-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-item span {
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

/* Sidebar Close Button Style */
.sidebar-close {
    display: none;
    /* Hidden by default on desktop */
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ff4d4d;
    /* Slight red tint on hover to signal 'close' */
}

.sidebar-close:active {
    transform: translateY(-50%) scale(0.9);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {

    .sidebar-close {
        display: block;
        /* Show only on mobile/tablet screens */
    }

    /* Ensure the sidebar header has relative positioning 
       so the button stays inside it */
    .sidebar-header {
        position: relative;
        padding-right: 50px;
        /* Make room so text doesn't hit the X */
    }

    .hamburger-btn {
        display: block !important;
    }

    .sidebar {
        left: -250px !important;
        /* Force hide by default on mobile */
        transition: left 0.3s ease-in-out;
        z-index: 1001;
    }

    /* This is the missing piece: when JS adds 'open', move it to 0 */
    .sidebar.open {
        left: 0 !important;
    }

    .sidebar.collapsed {
        left: -250px;
    }

    .sidebar.collapsed.open {
        left: 0;
    }


    .sidebar-toggle {
        display: none !important;
    }

    .navbar {
        left: 0 !important;
        width: 100% !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .btn-logout-mobile {
        display: inline-flex !important;
    }

}

@media (max-width: 768px) {
    .navbar-container {
        gap: 15px;
        min-height: auto;
        padding: 10px 20px;
    }

    .navbar-right {
        display: none;
    }

    .section-header h1 {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-content h3 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 10px;
    }

    .auth-wrapper {
        padding: 30px 20px;
    }

    .auth-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 16px;
    }

    .navbar-right {
        gap: 10px;
    }

    .username {
        display: none;
    }

    .btn-logout {
        padding: 8px 12px;
        font-size: 12px;
    }

    .main-content {
        padding: 15px 10px;
    }

    .section-header h1 {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        justify-content: flex-start;
    }

    .auth-wrapper {
        padding: 20px 15px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #6c757d;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ==========================================
   SIDEBAR & HAMBURGER
   ========================================== */

.hamburger-btn {
    display: block !important;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar.bg-light .hamburger-btn {
    color: #333;
}

.navbar.bg-light .hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 1000vh;
    background-color: white;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-color);
}

/* Collapsed sidebar state */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-brand .brand-text {
    display: none;
}

.sidebar.collapsed .sidebar-nav .nav-link span {
    display: none;
}

.sidebar.collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding: 14px 10px;
}

.sidebar.collapsed .sidebar-toggle {
    display: none;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.sidebar-brand {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand i {
    font-size: 24px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}



.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--dark-color);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav .logout-link {
    color: var(--danger-color) !important;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.sidebar-nav .logout-link:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color) !important;
    border-left-color: var(--danger-color);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    min-width: 20px;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .sidebar-nav .nav-link {
    position: relative;
}

.sidebar.collapsed .sidebar-nav .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1001;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.sidebar.collapsed .sidebar-nav .nav-link:hover::before {
    content: '';
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--dark-color);
    z-index: 1001;
}

/* ==========================================
   MODALS
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 30px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 12px 12px;
}

/* ==========================================
   MODAL RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {

    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px 24px 16px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-footer {
        padding: 16px 24px 20px;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .modal-header {
        padding: 16px 20px 12px;
        border-radius: 0;
    }

    .modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 12px 20px 16px;
        border-radius: 0;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 2px solid var(--border-color);
    }
}