/* ==========================================================================
   ROOT VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --success: #4cc9f0;
    --warning: #f72585;
    --danger: #ef233c;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    
    /* Extended colors for specific pages */
    --income-color: #2ecc71;
    --expense-color: #e74c3c;
    --balance-color: #3498db;
    --high-priority: #f72585;
    --medium-priority: #f8961e;
    --low-priority: #43aa8b;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.flash-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(420px, calc(100vw - 2rem));
    z-index: 1100;
}

.flash-messages .alert {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   DARK THEME
   ========================================================================== */
body.dark-theme,
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-theme .stat-card,
body.dark-theme .chart-card,
body.dark-theme .transactions-section,
body.dark-theme .card,
body.dark-theme .settings-card,
body.dark-theme .goal-card,
body.dark-theme .modal-content,
body.dark-mode .container {
    background: #1e1e1e;
    color: #ffffff;
}

body.dark-theme .stat-title,
body.dark-theme .chart-title,
body.dark-theme .section-title,
body.dark-theme .transactions-table th,
body.dark-mode .form-group label {
    color: #b0b0b0;
}

body.dark-theme .transactions-table td,
body.dark-mode .form-group input {
    color: #ffffff;
    border-bottom-color: #333333;
}

body.dark-theme .search-bar input,
body.dark-mode .form-group input {
    background: #2d2d2d;
    border-color: #333333;
    color: #ffffff;
}

body.dark-theme .search-bar i {
    color: #b0b0b0;
}

body.dark-theme .theme-toggle .dark {
    background: var(--primary);
    color: white;
}

body.dark-mode .social-btn {
    background: #3a3a4a;
    color: #f0f0f0;
}

body.dark-mode .social-btn:hover {
    background: #4a4a5a;
}

/* ==========================================================================
   SIDEBAR & NAVIGATION (Used in dashboard, income, reports, savings, settings, transactions)
   ========================================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    width: 280px;
    background: white;
    height: 100vh;
    position: fixed;
    box-shadow: var(--card-shadow);
    padding: 20px 0;
    transition: var(--transition);
    z-index: 100;
    left: 0;
    /* Add these lines */
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin-bottom: 10px;
}

.sidebar-initials {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sidebar-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
}

.sidebar-menu {
    padding: 20px 0;
    /* Add this line */
    flex: 1;
    overflow-y: auto;
}


.menu-title {
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    padding-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 5px 0;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    text-decoration: none;
}

.menu-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.menu-item.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu-item i {
    margin-right: 10px;
    font-size: 18px;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }
}

.menu-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   HEADER & TOP BAR (Used in dashboard, reports, savings, transactions)
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1,
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 10px 15px 10px 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    width: 250px;
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.user-info p {
    font-size: 12px;
    color: var(--gray);
}

.theme-toggle {
    background: var(--gray-light);
    border-radius: 20px;
    padding: 5px;
    display: flex;
    cursor: pointer;
}

.theme-toggle span {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.theme-toggle .light {
    background: white;
    color: var(--primary);
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
/* Cards */
.stat-card,
.card,
.chart-card,
.transactions-section,
.settings-card,
.goal-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ef233c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    margin-right: 10px;
}

.toast-notification.success {
    background: #4cc9f0;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-outline {
    background: none;
    border: 1px solid #dee2e6;
}

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

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

.btn-secondary:hover {
    background-color: #dee2e6;
}

.btn-danger {
    background: rgba(239, 35, 60, 0.1);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 35, 60, 0.2);
}

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

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 35px;
    cursor: pointer;
    color: #777;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
}

/* Modal */
.modal {
    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;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h3,
.modal-title {
    font-size: 20px;
    color: var(--dark);
}

.close-modal,
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-modal:hover,
.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 20px;
}

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

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ==========================================================================
   DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.income {
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
}

.stat-icon.expense {
    background: linear-gradient(135deg, #f72585, #ef233c);
}

.stat-icon.savings {
    background: linear-gradient(135deg, #3a86ff, #3f37c9);
}

.stat-icon.investments {
    background: linear-gradient(135deg, #4895ef, #4cc9f0);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    font-size: 14px;
    color: var(--gray);
}

.chart-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
}

.chart-period {
    display: flex;
    gap: 10px;
}

.period-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--gray-light);
    color: var(--gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.period-btn.active {
    background: var(--primary);
    color: white;
}

.chart-container {
    height: 300px;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.view-all {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-light);
}

.transactions-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.transaction-icon.shopping {
    background: linear-gradient(135deg, #f72585, #ef233c);
}

.transaction-icon.food {
    background: linear-gradient(135deg, #f8961e, #f3722c);
}

.transaction-icon.transport {
    background: linear-gradient(135deg, #577590, #4a7c59);
}

.transaction-icon.salary {
    background: linear-gradient(135deg, #43aa8b, #90be6d);
}

.transaction-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.transaction-info p {
    font-size: 12px;
    color: var(--gray);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.income {
    color: var(--success);
}

.transaction-amount.expense {
    color: var(--danger);
}

.income {
    color: var(--success);
}

.expense {
    color: var(--danger);
}

.transaction-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.transaction-status.completed {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.transaction-status.pending {
    background: rgba(247, 37, 133, 0.1);
    color: var(--warning);
}

/* ==========================================================================
   AUTH PAGES (Index, Signup, Forgot Password)
   ========================================================================== */
.auth-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    text-align: center;
}

.auth-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-container {
    padding: 20px 30px;
}

.links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.links a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
    color: #777;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #e0e0e0;
}

.error-message {
    color: #ff3333;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: #4bb543;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* ==========================================================================
   INCOME PAGE SPECIFIC STYLES
   ========================================================================== */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-change {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.change-up {
    color: var(--success);
}

.change-down {
    color: var(--danger);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-header .amount {
    color: #4cc9f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    font-weight: 600;
    color: #495057;
}

.income-source {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.source-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.salary { background-color: #4cc9f0; }
.freelance { background-color: #f72585; }
.investment { background-color: #7209b7; }
.business { background-color: #3a0ca3; }
.other { background-color: #4361ee; }

.amount {
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: #fff3bf;
    color: #f59f00;
}

.delete-btn {
    background-color: #ffe3e3;
    color: #fa5252;
}

.action-btn:hover {
    opacity: 0.8;
}

/* Logout button styling */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--gray-light);
}

.logout-form {
    width: 100%;
}

#logoutBtn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    color: var(--danger);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

#logoutBtn:hover {
    background-color: rgba(239, 35, 60, 0.1);
    color: var(--danger);
}

#logoutBtn i {
    margin-right: 10px;
    font-size: 16px;
}

/* ==========================================================================
   VISITOR PAGES & PUBLIC COMPONENTS
   ========================================================================== */

/* Layout wrapper adjustments */
.visitor-wrapper {
    margin-left: 0 !important;
    width: 100%;
    padding: 0;
}

/* Visitor Navbar */
.visitor-navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.visitor-navbar .navbar-brand {
    font-size: 1.5rem;
    color: #61208F;
}

.visitor-navbar .nav-link {
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s ease;
}

.visitor-navbar .nav-link:hover {
    color: #61208F;
}

/* Visitor Hero Section */
.visitor-hero {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(63, 55, 201, 0.72) 50%, rgba(97, 32, 143, 0.78) 100%), url('img/hero-bg.webp') center / cover no-repeat;
    color: #ffffff;
    padding: 5rem 1rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
    
}

.visitor-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.visitor-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.visitor-hero p.lead {
    font-size: 1.25rem;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

.visitor-hero .btn-cta-primary {
    background: #4cc9f0;
    color: #1a1a2e;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.visitor-hero .btn-cta-primary:hover {
    background: #38b6db;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.5);
    color: #1a1a2e;
}

.visitor-hero .btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.visitor-hero .btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Category Cards */
.category-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(97, 32, 143, 0.12);
    border-color: #61208F;
    color: #61208F;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(97, 32, 143, 0.08);
    color: #61208F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #61208F;
    color: #ffffff;
}

/* Public Job Card */
.public-job-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.public-job-card:hover {
    border-color: #61208F;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Visitor Footer */
.visitor-footer {
    background: #111827;
    color: #9ca3af;
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
    font-size: 0.95rem;
}

.visitor-footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.visitor-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.visitor-footer a:hover {
    color: #4cc9f0;
}

.visitor-footer .brand-text {
    line-height: 1.7;
    color: #d1d5db;
}

.visitor-footer .wa-button {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.visitor-footer .wa-button:hover {
    background: #1da851;
    color: #ffffff;
}

.visitor-footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #61208F 100%);
    color: white;
    padding: 3.5rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 1.5rem 1.5rem;
}


