/* 
 * Payroll System Stylesheet
 * Custom CSS for HHH Foundation School IPPIS Payroll System
 * Colors: Deep Forest Green (#0e3e2b), Gold/Amber (#d4af37)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0e3e2b;
    --primary-light: #16563d;
    --primary-dark: #072519;
    --secondary: #d4af37;
    --secondary-hover: #c49e2b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --sidebar-width: 260px;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Automatic Upper Case Formatting for All System Inputs & Controls */
input:not([type="password"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]):not([type="time"]):not([type="number"]):not([type="file"]):not([type="submit"]):not([type="button"]),
textarea,
select,
.form-control {
    text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Authentication Page Styling */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, var(--primary-light) 0%, var(--primary-dark) 90%);
    padding: 20px;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary);
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 62, 43, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

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

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    width: auto;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: auto;
}

.btn-outline:hover {
    background-color: #f1f5f9;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: left;
    border-left: 4px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: var(--danger);
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left-color: var(--success);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: var(--warning);
}

/* Layout Dashboard Design */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-dark);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header img.logo {
    width: 40px;
    height: 40px;
}

.sidebar-header .brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

.sidebar-header .brand-sub {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.15);
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.sidebar-user-role::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    display: inline-block;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 10px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569;
    padding: 15px 15px 5px;
    font-weight: 700;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-link.active {
    color: var(--primary-dark);
    background-color: var(--secondary);
    font-weight: 600;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Layout Area */
.app-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-navbar {
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.page-title-area h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

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

.current-time {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.logout-nav-link {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-nav-link:hover {
    text-decoration: underline;
}

.main-container {
    padding: 30px;
    flex-grow: 1;
    min-width: 0;
}

/* Dashboard Statistics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}
.metric-card.warning::after {
    background-color: var(--warning);
}
.metric-card.danger::after {
    background-color: var(--danger);
}
.metric-card.success::after {
    background-color: var(--success);
}
.metric-card.info::after {
    background-color: var(--info);
}

.metric-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    min-width: 0;
    max-width: 100%;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.card-body {
    padding: 24px;
    min-width: 0;
    max-width: 100%;
}

/* Custom Tables */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: auto !important;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    display: block;
}

.table-responsive::-webkit-scrollbar {
    height: 12px;
    width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.table-nowrap {
    white-space: nowrap !important;
    width: max-content !important;
    min-width: 100%;
}

.table-nowrap th, .table-nowrap td {
    white-space: nowrap !important;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.table th {
    background-color: #f1f5f9;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

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

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-draft {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fffbeb;
    color: #92400e;
}

/* Utilities */
.text-right {
    text-align: right;
}

.font-mono {
    font-family: monospace;
}

.font-bold {
    font-weight: 700;
}

/* Forms layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.form-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Employee Detail Profile */
.profile-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-avatar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.profile-title {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.profile-status {
    margin-top: 5px;
}

.profile-header-meta {
    text-align: right;
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-header-meta {
        text-align: left;
    }
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    gap: 10px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.detail-list {
    list-style: none;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.detail-val {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Payslip Design Template */
.payslip-container {
    max-width: 760px;
    margin: 0 auto;
    background-color: #ffffff;
    border: none !important;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    box-shadow: none !important;
    outline: none !important;
    color: #000;
    box-sizing: border-box;
}

.payslip-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payslip-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payslip-title-section {
    text-align: right;
}

.payslip-inst {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.payslip-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.payslip-lbl {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-hover);
    text-transform: uppercase;
}

.payslip-month {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.payslip-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.payslip-meta-table {
    width: 100%;
}

.payslip-meta-table td {
    padding: 4px 0;
}

.payslip-meta-table td.lbl {
    font-weight: 600;
    color: #4b5563;
    width: 40%;
}

.payslip-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .payslip-breakdown {
        grid-template-columns: 1fr;
    }
}

.payslip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.payslip-table th {
    border-bottom: 1.5px solid #000;
    padding: 8px 4px;
    text-align: left;
}

.payslip-table td {
    padding: 8px 4px;
    border-bottom: 1px dashed #e5e7eb;
}

.payslip-summary-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.payslip-sum-item {
    text-align: center;
}

.payslip-sum-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}

.payslip-sum-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.payslip-sum-val.net {
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px double var(--secondary);
    padding-bottom: 2px;
}

.payslip-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--text-light);
}

.payslip-sig {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    margin-top: 10px;
    font-style: italic;
    color: #4b5563;
}

.payslip-sig-line {
    width: 150px;
    border-bottom: 1px solid #4b5563;
    margin: 30px auto 5px;
}

.payslip-qr {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5px;
}

.payslip-qr-img {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #000 20%, transparent 20%),
                      radial-gradient(circle, #000 20%, transparent 20%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    opacity: 0.75;
}

/* Print CSS overrides */
@media print {
    @page {
        margin: 8mm;
        size: A4 portrait;
    }
    body, html {
        background-color: #fff !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .app-wrapper, .app-content, .main-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .app-sidebar, .app-navbar, .no-print, .btn, .tab-nav {
        display: none !important;
    }
    .payslip-container {
        border: none !important;
        box-shadow: none !important;
        padding: 20px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .payslip-breakdown, .payslip-meta-grid, .payslip-header, .payslip-summary-box, .payslip-footer {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Actions styling */
.action-buttons {
    display: flex;
    gap: 8px;
}

.activity-feed {
    list-style: none;
}

.activity-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 15px;
    border-left: 2px solid var(--border-color);
}

.activity-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid #fff;
}

.activity-item.system::before {
    background-color: var(--info);
}

.activity-item.auth::before {
    background-color: var(--warning);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.activity-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.activity-user {
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-num {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

.page-num.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Custom landing page styles */
.landing-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 5px solid var(--secondary);
}

.landing-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.landing-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 30px;
}

.landing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -40px auto 50px;
    padding: 0 20px;
}

.landing-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.landing-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.landing-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.landing-card-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Modal styles */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active,
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content,
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
}
