:root {
    /* Color palette */
    --color-text: #333;
    --color-dark: #1f2937;
    --color-muted: #6b7280;
    --color-subtle: #555;
    --color-bg: #fefbe9;

    --color-primary-1: #7c3aed;
    --color-primary-2: #a855f7;

    --color-light-1: #fefbe9;
    --color-light-2: #e9d5ff;
    --color-light-3: #ddd6fe;
    --color-faint-1: #faf5ff;
    --color-faint-2: #f3e8ff;

    --color-gray-100: #f9fafb;
    --color-gray-200: #f3f4f6;
    --color-border: #e5e7eb;
    --color-muted-2: #9ca3af;

    /* Shadows and overlays */
    --shadow-1: rgba(0,0,0,0.1);
    --shadow-2: rgba(0,0,0,0.15);
    --shadow-3: rgba(0,0,0,0.2);
    --shadow-accent-1: rgba(124,58,237,0.3);
    --shadow-accent-2: rgba(124,58,237,0.2);
    --radial-accent: rgba(124,58,237,0.1);
    --overlay-white-95: rgba(255,255,255,0.95);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-1), var(--color-primary-2));
    --gradient-hero: linear-gradient(135deg, var(--color-light-1) 0%, var(--color-light-2) 20%, var(--color-light-3) 100%);
    --gradient-feature-card: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    --gradient-steps-bg: linear-gradient(135deg, var(--color-faint-1) 0%, var(--color-faint-2) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Zalando Sans SemiExpanded", sans-serif;
}

body {
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 0;
    box-shadow: 0 2px 10px var(--shadow-1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-2);
}

.nav-container {
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo,
.navbar .logo-icon img {
    filter: brightness(0) invert(1);
}

.navbar .user-profile {
    color: white;
}

.navbar .user-profile .name,
.navbar .user-profile .role {
    color: white;
}

.navbar .logout-btn {
    color: white;
    opacity: 0.9;
}

.navbar .logout-btn:hover {
    opacity: 1;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logo-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.5px;
}

/* Logo in purple navbar (main.jsp) */
.navbar .logo-img {
    filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar .logo-text {
    color: white;
}

/* Logo in landing page (light navbar) */
.navbar-landing {
    background: var(--color-bg);
    height: auto;
    padding: 1rem 0;
}

.navbar-landing .logo-img {
    filter: none;
    height: 44px;
    width: 44px;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.25);
}

.navbar-landing .logo-text {
    color: #1f2937;
    font-size: 1.6rem;
}

/* Footer logo styles */
footer .logo-link {
    margin-bottom: 0.5rem;
}

footer .logo-img {
    height: 38px;
    width: 38px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

footer .logo-text {
    color: #f9fafb;
    font-size: 1.4rem;
}

footer .logo-text .text-gradient {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-select {
    background: white;
    border: 2px solid #e5e7eb;
    padding: .5rem .5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.language-select:hover {
    border-color: #7c3aed;
}

.language-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.language-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border: 2px solid #7c3aed;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #7c3aed;
    transition: all 0.3s;
}

.language-badge:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary-1);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-bg);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary-1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-accent-1);
}

.hero {
    padding: 120px 2rem 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--radial-accent) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-primary-1);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--color-primary-1);
}

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

.hero-image {
    position: relative;
}

.mockup {
    width: 100%;
    height: 500px;
    background: var(--color-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-3);
    padding: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.features {
    padding: 80px 2rem;
    background: var(--color-bg);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--gradient-feature-card);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-accent-2);
    border-color: var(--color-primary-1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding: .5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.feature-card p {
    color: var(--color-muted);
    line-height: 1.8;
}

.how-it-works {
    padding: 80px 2rem;
    background: var(--gradient-steps-bg);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-1);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.step-content p {
    color: var(--color-muted);
}

.stats {
    padding: 80px 2rem;
    background: var(--gradient-primary);
    color: var(--color-bg);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta {
    padding: 80px 2rem;
    background: var(--color-bg);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.cta p {
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

footer {
    background: var(--color-dark);
    color: var(--color-bg);
    padding: 1rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-about h3 {
    margin-bottom: .5rem;
}

.footer-about p {
    color: var(--color-muted-2);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .language-badge {
        display: flex;
    }
}



/* LOGIN FORM CSS */

.auth-container {
    display: grid;
    max-width: 500px;
    width: 100%;
    background: var(--color-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-1)
}

.auth-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6b7280;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Password input wrapper for Add User modal */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #6b7280;
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-header-cont{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}



/* Overlay that covers entire page */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    backdrop-filter: blur(8px); /* Blur effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensures it's on top */
}

#login-form-container{
    position: fixed;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#login-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: loginModalAppear 0.3s ease-out;
}

@keyframes loginModalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Login Modal Styles */
.login-modal {
    padding: 2.5rem;
    position: relative;
}

.login-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.login-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.login-close-btn svg {
    width: 18px;
    height: 18px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.login-logo svg {
    width: 32px;
    height: 32px;
    color: white;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.login-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
    background: #f9fafb;
}

.login-input-wrapper input:focus {
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.login-input-wrapper input::placeholder {
    color: #9ca3af;
}

.login-password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.login-password-toggle:hover {
    color: #6b7280;
}

.login-password-toggle svg {
    width: 20px;
    height: 20px;
}

.login-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.login-submit-btn:hover svg {
    transform: translateX(4px);
}

.modal-open {
    overflow: hidden;
}


#overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; 

}


/* MAIN PAGE */

        /* Header */
        .header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-bottom: 1px solid #e5e7eb;
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #7c3aed, #a855f7);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .logo h1 {
            font-size: 1.5rem;
            color: #7c3aed;
        } */

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-info .name {
    font-weight: 600;
    color: #1f2937;
}

.user-info .role {
    font-size: 0.875rem;
    color: #6b7280;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #7c3aed;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Main Container */
.main-container {
    display: flex;
    gap: 0;
    min-height: 100vh;
    padding-top: 60px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: white;
    padding: 1.5rem 1rem;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6b7280;
    font-weight: 500;
}

.nav-item:hover {
    background: #f3f4f6;
}

.nav-item.active {
    background: #7c3aed;
    color: white;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* Content Area */
.content {
    flex: 1;
    background: #f8f9fc;
    padding: 2rem 2.5rem;
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.module-view {
    max-width: 100%;
}

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

.content-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stat-card.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }
.stat-card.blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; }
.stat-card.green { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.stat-card.orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.users-view .table-container {
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
}

.users-view .table-wrapper {
    flex: 1;
    overflow-y: auto;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-header h3 {
    font-size: 1.25rem;
    color: #1f2937;
}

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

thead {
    background: #f9fafb;
}

th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

td {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

tbody tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.admin { background: #ede9fe; color: #7c3aed; }
.badge.staff { background: #dbeafe; color: #3b82f6; }
.badge.active { background: #d1fae5; color: #10b981; }
.badge.completed { background: #e5e7eb; color: #6b7280; }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: #f3f4f6;
}

.btn-icon.edit { color: #3b82f6; }
.btn-icon.delete { color: #ef4444; }

/* Event Cards */
.events-grid {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.event-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.event-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-stat {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
}

.event-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.event-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.event-stat.purple .event-stat-value { color: #7c3aed; }
.event-stat.blue .event-stat-value { color: #3b82f6; }
.event-stat.green .event-stat-value { color: #10b981; }

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

.btn-secondary {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #7c3aed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0;
}

/* Modal Close Button */
.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .event-stats {
        grid-template-columns: 1fr;
    }
}

.scroll-div {
    max-height: 300px;
    overflow-y: auto;
}

/* Add after .table-container styles */
.table-wrapper {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    flex: 1;
}

/* Make header sticky when scrolling */
.table-wrapper thead {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Custom scrollbar styling */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}






/* Events Layout - Two Panel */
.events-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 1.5rem;
    height: calc(100vh - 180px);
    min-height: 500px;
}

.events-list-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.events-list-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-list-header h3 {
    font-size: 1.25rem;
    color: #1f2937;
}

.events-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.event-list-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.event-list-item:hover {
    background: #f9fafb;
}

.event-list-item.selected {
    background: #f3e8ff;
    border-color: #7c3aed;
}

.event-list-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.event-list-item-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.moi-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.moi-panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.moi-panel-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.moi-panel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.moi-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.moi-entry-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #7c3aed;
}

.moi-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.moi-entry-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
}

.moi-entry-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7c3aed;
}

.moi-entry-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.moi-entry-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.cash { background: #d1fae5; color: #10b981; }
.badge.gift { background: #dbeafe; color: #3b82f6; }
.badge.cheque { background: #fef3c7; color: #f59e0b; }
.badge.online { background: #ede9fe; color: #7c3aed; }
.badge.relation { background: #fce7f3; color: #db2777; margin-left: 0.25rem; }

/* Checkbox group for MOI types */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-label:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label:has(input:checked) {
    color: #7c3aed;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0;
}

/* Modal Close Button */
.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 99999;
    min-width: 300px;
    max-width: 450px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.success .toast-icon {
    background: #d1fae5;
    color: #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

#toast-message {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

/* Staff Assignment Styles */
.staff-select-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assigned-staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.staff-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.staff-tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.staff-tag-remove:hover {
    opacity: 1;
}

.staff-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.375rem;
    margin-bottom: 0.25rem;
}

/* ==================== CONFIRMATION DIALOG ==================== */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-dialog-overlay.show {
    display: flex;
    opacity: 1;
}

.confirm-dialog-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dialogFadeIn 0.2s ease;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-dialog-icon {
    margin-bottom: 1rem;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.confirm-icon.warning {
    color: #f59e0b;
}

.confirm-icon.danger {
    color: #ef4444;
}

.confirm-icon.info {
    color: #7c3aed;
}

.confirm-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.confirm-dialog-message {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-dialog-actions .btn-cancel {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-dialog-actions .btn-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.confirm-dialog-actions .btn-danger {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-dialog-actions .btn-danger:hover {
    background: #dc2626;
}

/* ==================== ENHANCED TABLE STYLES ==================== */
.table-wrapper table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-wrapper table thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-wrapper table tbody tr {
    transition: background-color 0.15s ease;
}

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

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

.table-wrapper table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn.edit {
    color: #3b82f6;
}

.action-btn.edit:hover {
    background: #eff6ff;
    color: #2563eb;
}

.action-btn.delete {
    color: #ef4444;
}

.action-btn.delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Icon Text Buttons */
.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-text svg {
    width: 16px;
    height: 16px;
}

.btn-icon-text.btn-secondary {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.btn-icon-text.btn-secondary:hover {
    background: #f9fafb;
    border-color: #7c3aed;
    color: #7c3aed;
}

.btn-icon-text.btn-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.btn-icon-text.btn-danger:hover {
    background: #fee2e2;
    border-color: #f87171;
}

/* Role Badges Enhanced */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge.super_admin {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

.badge.admin {
    background: #ede9fe;
    color: #7c3aed;
}

.badge.staff {
    background: #dbeafe;
    color: #3b82f6;
}

/* ==================== ENHANCED EVENT CARDS ==================== */
.event-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid #7c3aed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.event-card.selected {
    background: #faf5ff;
    border-left-color: #a855f7;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.event-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-card-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.event-type-wedding { background: #fce7f3; color: #be185d; }
.event-type-engagement { background: #fef3c7; color: #b45309; }
.event-type-birthday { background: #cffafe; color: #0891b2; }
.event-type-anniversary { background: #f3e8ff; color: #7c3aed; }
.event-type-housewarming { background: #d1fae5; color: #059669; }
.event-type-babyshower { background: #ffe4e6; color: #e11d48; }
.event-type-other { background: #f3f4f6; color: #4b5563; }

.event-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.event-card-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-card-detail svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.event-card-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.event-card-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #9ca3af;
}

.event-card-stat svg {
    width: 14px;
    height: 14px;
}

.event-card-stat.staff {
    color: #7c3aed;
    font-weight: 500;
}

/* Disabled input field styling */
.disabled-field {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.disabled-field:focus {
    outline: none;
    border-color: #d1d5db;
}

/* MOI Entry Action Buttons */
.moi-entry-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.moi-entry-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .content {
        padding: 1.5rem;
    }

    .events-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .users-view .table-container {
        height: auto;
    }
}