@keyframes animatedBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

html, body {
    scrollbar-width: thin;
    scrollbar-color: #5865f2 #181c2a;
    max-width: 100vw;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a; /* Dark background */
    color: #f0f0f0;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-behavior: smooth;
    box-sizing: border-box;
}
html::-webkit-scrollbar {
    width: 12px;
    background: #181c2a;
}
html::-webkit-scrollbar-track {
    background: #181c2a;
    border-radius: 8px;
}
html::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5865f2 0%, #007aff 100%);
    border-radius: 8px;
    border: 2px solid #181c2a;
}
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #007aff 0%, #5865f2 100%);
}

header {
    background-color: rgba(28, 28, 30, 0.5); /* Increased transparency (was 0.85) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 56, 58, 0.7); /* Subtle border */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px; /* Slightly reduced max-width for a tighter feel */
    margin: 0 auto;
    padding: 0 2em;
}

.logo {
    font-size: 1.5em; /* Slightly smaller logo */
    font-weight: 600; /* Semi-bold for modern feel */
    color: #f5f5f7;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2em; /* Increased gap */
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #a0a0a5; /* Softer grey for inactive links */
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #f5f5f7; /* Brighter white for hover/active for text links */
}

/* CSS for role-specific nav items has been removed to make them always visible */

.rules-button {
    background-color: #3a3a3c; /* Dark gray control color */
    color: #f5f5f7 !important; /* Ensure text is light */
    padding: 0.6em 1.2em;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block; /* Behaves like a button */
}

.rules-button:hover {
    background-color: #4f4f52; /* Slightly lighter gray on hover */
    color: #ffffff !important;
}

.rules-button.active {
    background-color: #007aff; /* Apple blue for active state */
    color: #ffffff !important;
}

.discord-button {
    background-color: #5865F2; /* Official Discord Blurple, more vibrant */
    color: #ffffff !important;
    padding: 0.6em 1.2em;
    border-radius: 8px; /* More rounded corners */
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Added transform and box-shadow */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle initial shadow */
}

.discord-button:hover {
    background-color: #4752C4; /* Slightly darker on hover */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.hero {
    flex: 1 0 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em 0.5em 1em 0.5em;
    box-sizing: border-box;
    text-align: center;
    position: relative; 
    overflow: hidden; /* Ensure this is active to contain the background images */
    width: 100%; /* Explicitly set to full width */
}

.hero-background-left,
.hero-background-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%; 
    background-size: cover;
    background-position: center center;
    z-index: 0; 
    opacity: 0.5; /* Slightly increased opacity to 0.5 (was 0.4) */
}

.hero-background-left {
    left: 0;
    background-image: url('gta.png');
    /* Smoother vertical fade */
    mask-image: linear-gradient(to right, black 20%, transparent 90%);
    -webkit-mask-image: linear-gradient(to right, black 20%, transparent 90%);
}

.hero-background-right {
    right: 0;
    background-image: url('gta2.png'); /* Switched to gta2.png */
    /* Smoother vertical fade */
    mask-image: linear-gradient(to left, black 20%, transparent 90%); 
    -webkit-mask-image: linear-gradient(to left, black 20%, transparent 90%);
}

.hero-content {
    max-width: 680px; 
    z-index: 1; 
    position: relative; 
}

.relaunch-info {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.6em 1.2em;
    border-radius: 20px; /* Pill shape */
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 1.5em;
    color: #d1d1d6;
    animation: pulseBadge 2.5s ease-in-out infinite, fadeInUp 0.5s ease-out 0.2s backwards;
}

.hero-content h1 {
    font-size: 3.8em; /* Larger, more impactful heading */
    font-weight: 700; /* Bold */
    /* New text gradient */
    background: -webkit-linear-gradient(top, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f5f5f7; /* Fallback for browsers that don't support text gradient */
    line-height: 1.15;
    margin-bottom: 0.6em;
    letter-spacing: -0.02em; /* Subtle letter spacing for headings */
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-content p {
    font-size: 1.25em; /* Larger paragraph text */
    line-height: 1.65;
    margin-bottom: 1.5em; /* Adjusted margin to make space for stats */
    color: #a0a0a5; /* Softer grey for paragraph */
    max-width: 580px; /* Control line length for readability */
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.server-stats {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 2.5em; /* Space before the main CTA button */
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle light background */
    /* border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border - replaced by top border */
    border-radius: 8px;
    padding: 1em 1.5em;
    text-align: center;
    min-width: 200px; /* Give them some base width */
    position: relative; /* For pseudo-elements if needed or more advanced styling */
    overflow: hidden; /* To ensure top border doesn't create weird overlaps if padding is tight */
}

.fivem-stats {
    border-top: 3px solid #f9a825; /* FiveM-like orange/yellow accent */
}

.discord-stats {
    border-top: 3px solid #7289da; /* Discord blurple accent */
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #a0a0a5; /* Softer grey for label */
    margin-bottom: 0.5em;
}

.stat-count {
    display: block;
    font-size: 2em;
    font-weight: 600;
    color: #a0a0a5; /* Make the max players part slightly less prominent */
}

.stat-count .current-players {
    color: #f5f5f7; /* Bright white for current player count */
    font-weight: 700; /* Slightly bolder */
}

/* Optional: custom icon styling if Unicode characters aren't enough */
.stat-label span:first-child { /* If icons were wrapped in spans */
    margin-right: 0.5em;
}

/* Specific icons (optional, using FontAwesome for example if we add it later) */
/* .fivem-stats .stat-label::before {
    content: "\f233"; /* Example: FontAwesome server icon */
/*    font-family: "Font Awesome 5 Free";
    margin-right: 0.5em;
    color: #f9a825; /* FiveM-like orange/yellow */
/*}

/* .discord-stats .stat-label::before {
    content: "\f392"; /* Example: FontAwesome Discord icon */
/*    font-family: "Font Awesome 5 Brands";
    margin-right: 0.5em;
    color: #7289da; /* Discord blurple */
/*} */

.cta-button {
    background-color: #007aff; /* Apple blue */
    color: #ffffff;
    padding: 0.9em 2em;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block; /* Ensure it behaves well */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease-out 1s backwards;
}

.cta-button:hover {
    background-color: #005ecb; /* Darker Apple blue on hover */
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.hero-image {
   display: none; /* Hide the placeholder image for now, to focus on text and layout */
}

.footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #1c1c1e !important; /* Darker background, forced */
    color: #8e8e93 !important; /* Forced */
    font-size: 0.9em;
    border-top: 1px solid #2a2a2c !important; /* More subtle border, forced */
    text-align: center;
    padding: 1.5em 1em;
    margin-top: auto; /* Push to the bottom */
}

.sponsored-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 56, 58, 0.7);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sponsored-box:hover {
    background-color: rgba(28, 28, 30, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sponsored-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.sponsored-text {
    color: #f5f5f7;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.sponsored-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sponsored-link:hover {
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.7em 0;
    }
    nav {
        flex-direction: column;
        align-items: center;
        padding: 0 0.5em;
    }
    .logo {
        font-size: 1.2em;
        margin-bottom: 0.5em;
        text-align: center;
        width: 100%;
    }
    nav ul {
        flex-direction: column;
        gap: 0.2em;
        width: 100%;
        align-items: center;
        padding: 0.2em 0 0.5em 0;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
        margin-top: 0.2em;
    }
    .discord-button, .nav-button {
        width: 100%;
        font-size: 1em;
        margin-bottom: 0.3em;
        padding: 0.7em 0;
        border-radius: 6px;
    }
    .hero {
        padding: 1.5em 0.2em 0.5em 0.2em;
    }
    .hero-content {
        margin: 0 auto;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 1.5em;
        margin-bottom: 0.4em;
    }
    .hero-content p {
        font-size: 1em;
        margin-bottom: 1em;
    }
    .server-stats {
        flex-direction: column;
        gap: 0.7em;
        align-items: center;
        margin-bottom: 1.2em;
    }
    .stat-box {
        min-width: 0;
        width: 95%;
        margin: 0 auto;
        padding: 0.6em 0.5em;
        border-radius: 6px;
        font-size: 1em;
    }
    .stat-label {
        font-size: 0.95em;
    }
    .stat-count {
        font-size: 1.5em;
    }
    .cta-button {
        width: 100%;
        font-size: 1em;
        padding: 0.7em 0;
        border-radius: 6px;
        margin-bottom: 1em;
    }
    footer {
        padding: 0.7em 0 0.1em 0;
        font-size: 0.95em;
    }
    .sponsored-box {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        gap: 8px;
    }
    .sponsored-logo {
        width: 24px;
        height: 24px;
    }
    .sponsored-text {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.1em;
    }
    .hero-content p {
        font-size: 0.95em;
    }
    .stat-box {
        font-size: 0.95em;
        padding: 0.5em 0.2em;
        border-radius: 5px;
    }
    .cta-button, .discord-button, .nav-button {
        font-size: 0.95em;
        padding: 0.6em 0;
        border-radius: 5px;
    }
    .logo {
        font-size: 1em;
    }
    nav ul li a {
        font-size: 0.95em;
    }
    footer {
        font-size: 0.95em;
        padding: 0.5em 0 0.05em 0;
    }
    .sponsored-box {
        bottom: 5px;
        right: 5px;
        padding: 6px 10px;
        gap: 6px;
    }
    .sponsored-logo {
        width: 20px;
        height: 20px;
    }
    .sponsored-text {
        font-size: 0.7em;
    }
}

/* Styles for content pages like rules.html */
.page-content {
    padding: 6em 2em 4em; 
    max-width: 900px; 
    margin: 0 auto;
    text-align: left; 
    position: relative; /* Still useful */
    /* overflow: hidden; /* No longer strictly needed */
}

.page-content h1,
.page-content p,
.page-content .rule-category { 
    position: relative;
    z-index: 1;
}

.page-content h1 {
    font-size: 2.8em; /* Slightly smaller than hero H1 */
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 1em;
    border-bottom: 1px solid rgba(56, 56, 58, 0.7);
    padding-bottom: 0.5em;
}

.page-content p,
.page-content ul {
    font-size: 1.1em;
    line-height: 1.7;
    color: #a0a0a5;
    margin-bottom: 1.5em;
}

.rule-category h2 {
    font-size: 1.8em;
    font-weight: 500;
    color: #f5f5f7;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 1px solid rgba(56, 56, 58, 0.5);
    padding-bottom: 0.3em;
}

.rule-category ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove default padding */
}

.rule-category li {
    margin-bottom: 0.8em;
    padding-left: 1.5em; /* Indent for custom bullet or numbering */
    position: relative;
}

.rule-category li strong {
    color: #d1d1d6; /* Slightly brighter for rule numbers */
    font-weight: 600;
}

/* Application Form Styles */
.application-form-section {
    padding: 60px 20px;
    background: var(--background-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--container-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-container p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.application-form .form-group {
    margin-bottom: 25px;
}

.application-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.application-form input[type="text"],
.application-form input[type="number"],
.application-form input[type="url"],
.application-form textarea,
.application-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.application-form textarea {
    resize: vertical;
    min-height: 120px;
}

.application-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* End Application Form Styles */

/* Optional: custom bullet style if desired, or use the strong tag as is */
/* .rule-category li::before {
    content: "§";
    position: absolute;
    left: 0;
    color: #007aff; 
    font-weight: bold;
} */

.rules-note {
    font-style: italic;
    font-size: 0.95em;
    color: #8e8e93;
    margin-top: 2.5em;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #007aff;
    border-radius: 4px;
}

/* Responsive adjustments for page content - This is the correct block, remove the other one */
@media (max-width: 768px) {
    .page-content {
        padding-top: 8em;
    }

    .page-content h1 {
        font-size: 2.2em;
    }

    .rule-category h2 {
        font-size: 1.5em;
    }

    .page-content p,
    .page-content ul {
        font-size: 1em;
    }
}

/* Staff Panel Styles */
.staff-panel-section h1 {
    /* Uses existing .page-content h1 styles */
}

.applications-list {
    margin-top: 2em;
}

.application-summary-item {
    background-color: rgba(44, 44, 46, 0.85); /* Slightly lighter than page, Apple dark grey item bg */
    padding: 1.8em; /* Increased padding */
    border-radius: 10px; /* Consistent with modal */
    /* border: 1px solid rgba(80, 80, 82, 0.7); Softer border or remove if shadow is enough */
    border: none; /* Going for a flatter look with subtle shadow */
    box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* Softer, more diffused shadow */
    margin-bottom: 1.8em; /* Increased margin */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.application-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.application-summary-item h3 {
    font-size: 1.35em; /* Slightly adjusted */
    color: #f5f5f7; /* Brighter title */
    margin-top: 0;
    margin-bottom: 0.6em;
}

.application-summary-item p {
    font-size: 0.98em; /* Slightly adjusted */
    color: #c0c0c5; /* Lighter grey for text */
    margin-bottom: 0.6em;
    line-height: 1.5;
}

.application-summary-item p strong {
    color: #e0e0e0; /* Even lighter for strong tags */
    font-weight: 500;
}

.application-summary-item .small-button {
    font-size: 0.9em;
    padding: 0.6em 1.2em; /* Adjusted padding */
    margin-top: 1em; /* More space above button */
}
/* End Staff Panel Styles */

/* Filter Controls for Staff Panel */
.filter-controls {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: rgba(44, 44, 46, 0.7); /* Similar to application items but distinct */
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-controls label {
    font-weight: 500;
    color: #c0c0c5;
}

.filter-controls select {
    padding: 0.6em 0.8em;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #f5f5f7;
    font-size: 0.95em;
    min-width: 200px; /* Give it some space */
}

.filter-controls select:focus {
    border-color: #007aff; /* Apple blue focus */
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
    outline: none;
}

/* Available Jobs Page Styles */
.available-jobs-section h1 {
    /* Uses existing .page-content h1 styles */
}

.job-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5em;
    margin-top: 2em;
}

.job-card {
    background-color: rgba(30, 30, 32, 0.7); /* Darker card background, similar to image */
    border-radius: 12px; /* More rounded corners */
    padding: 1.8em;
    text-align: center;
    border: 1px solid rgba(56, 56, 58, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center items horizontally */
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.job-card-icon-placeholder {
    width: 80px; /* Adjust size as needed */
    height: 80px;
    background-color: rgba(50, 50, 52, 0.8); /* Placeholder color */
    border-radius: 50%; /* Circular icon background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 1em;
    /* In a real scenario, replace with <img> or SVG icon */
}

/* Example: Specific icon background colors (optional) */
.job-card:nth-child(1) .job-card-icon-placeholder { /* Politi */
    background-color: rgba(0, 94, 203, 0.3); /* Blue-ish */
}
.job-card:nth-child(2) .job-card-icon-placeholder { /* EMS */
    background-color: rgba(203, 0, 0, 0.3); /* Red-ish */
}
.job-card:nth-child(3) .job-card-icon-placeholder { /* Mekaniker */
    background-color: rgba(249, 168, 37, 0.3); /* Orange-ish */
}
.job-card:nth-child(4) .job-card-icon-placeholder { /* Taxa */
    background-color: rgba(255, 215, 0, 0.3); /* Yellow-ish */
}
.job-card:nth-child(5) .job-card-icon-placeholder { /* Ejendom */
    background-color: rgba(0, 128, 0, 0.3); /* Green-ish */
}


.job-card h2 {
    font-size: 1.6em;
    color: #f5f5f7;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.job-card-description {
    font-size: 0.95em;
    color: #a0a0a5;
    line-height: 1.5;
    margin-bottom: 1.5em;
    flex-grow: 1; /* Allows description to take available space, pushing button down */
    min-height: 40px; /* Give it a bit of min height to align buttons if descriptions vary a lot */
}

.job-card-button {
    background-color: #007aff; /* Apple blue, consistent with .cta-button */
    color: #ffffff;
    padding: 0.7em 1.5em;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: auto; /* Pushes button to the bottom of the card */
}

.job-card-button:hover {
    background-color: #005ecb;
    transform: scale(1.05);
}
/* End Available Jobs Page Styles */

/* Job Application Page - Specific Sections */
.job-specific-section {
    display: none; /* Hidden by default */
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1.5em;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Optional: Style the desiredJob select if we want to de-emphasize it later */
/* #desiredJob {
    opacity: 0.7;
    pointer-events: none; 
} */

/* Staff Panel - Application Status Styling */
.application-status {
    font-weight: 500; /* Normal bold */
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-block;
}
.status-afventer {
    color: #ff9f0a; /* Apple Orange */
    background-color: rgba(255, 159, 10, 0.15);
}
.status-godkendt {
    color: #30d158; /* Apple Green */
    background-color: rgba(48, 209, 88, 0.15);
}
.status-afvist {
    color: #ff453a; /* Apple Red */
    background-color: rgba(255, 69, 58, 0.15);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity (backdrop) */
    padding-top: 50px; /* Location of the box */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: opacity 0.3s ease; /* For fade-in/out if display is toggled with opacity */
}

.modal.show .modal-content { /* Add .show class to modal to trigger animation */
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    background-color: #1c1c1e; /* Darker, more solid modal background */
    color: #f5f5f7;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 25px;
    border: 1px solid rgba(80, 80, 82, 0.7);
    border-radius: 12px; /* Slightly more rounded */
    width: 85%; /* Could be more or less, depending on screen size */
    max-width: 750px; /* Maximum width */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* More prominent shadow for modal */
    position: relative;
    opacity: 0; /* For fade-in animation */
    transform: scale(0.95); /* For pop-in animation */
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.modal-close-button {
    color: #8e8e93; /* Softer grey for close button */
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: #f5f5f7; /* White on hover */
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    margin-top: 0;
    font-size: 1.7em; /* Slightly reduced */
    font-weight: 600; /* Bolder title */
    border-bottom: 1px solid rgba(80, 80, 82, 0.5);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.modal-body-content {
    max-height: 60vh; /* Limit height and make scrollable if content overflows */
    overflow-y: auto;
    padding-right: 5px; /* Reduced for less aggressive scrollbar gap */
    margin-right: -10px; /* Nudge content to use full width before scrollbar */
}

.modal-body-content p {
    margin-bottom: 0.8em;
    line-height: 1.6;
}

.modal-body-content p strong {
    color: #d1d1d6;
    display: block;
    margin-bottom: 0.2em;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-body-content ul li {
    padding: 10px 0; /* Increased padding */
    border-bottom: 1px solid rgba(60, 60, 62, 0.5); /* Softer border */
    display: flex; /* Use flex for better key-value alignment */
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top if value wraps */
    gap: 15px; /* Gap between key and value */
}

.modal-body-content ul li:last-child {
    border-bottom: none;
}

.modal-body-content ul li strong {
    color: #a0a0a5; /* Softer color for labels */
    font-weight: 500;
    flex-basis: 35%; /* Assign a basis for the key */
    flex-shrink: 0; /* Prevent key from shrinking */
    text-transform: none; 
    letter-spacing: normal;
    padding-right: 10px; /* Space between key and its colon essentially */
}

.modal-body-content ul li span.value-content {
    flex-basis: 60%; /* Assign a basis for the value */
    word-break: break-word; /* Allow long values to wrap */
    color: #e0e0e0; /* Brighter color for values */
}

.modal-actions {
    margin-top: 25px; /* Increased space */
    padding-top: 20px; /* Increased space */
    border-top: 1px solid rgba(80, 80, 82, 0.5);
    text-align: right;
}

.modal-actions .cta-button {
    margin-left: 10px;
}

.modal-actions .delete-app-btn {
    background-color: #ff453a; /* Apple Red system color */
    color: #ffffff;
}

.modal-actions .delete-app-btn:hover {
    background-color: #ff6b61; /* Lighter Apple Red on hover for better feedback */
}

/* End Modal Styles */

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Custom Scrollbar for Modal */
.modal-body-content::-webkit-scrollbar {
    width: 8px;
}

.modal-body-content::-webkit-scrollbar-track {
    background: transparent; /* Make track invisible */
}

.modal-body-content::-webkit-scrollbar-thumb {
    background-color: #555; /* A subtle dark grey */
    border-radius: 4px;
    border: 2px solid #1c1c1e; /* Creates padding around thumb */
}

.modal-body-content::-webkit-scrollbar-thumb:hover {
    background-color: #777; /* Lighter on hover */
}

.nav-button {
    background-color: hsla(231, 71%, 66%, 0.8); /* Using the accent color */
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background-color: hsla(231, 71%, 75%, 1);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
}

.user-display .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid hsla(231, 71%, 66%, 0.8);
}

/* Main Content and Hero Section */
main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 70px; /* Offset for fixed navbar */
    box-sizing: border-box;
}

.animated-gradient {
    background: linear-gradient(-45deg, #0d1a26, #1a0d26, #260d1a, #1a1a0d);
}

/* =========================================
   Rules Page Specific Styles
   ========================================= */

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rule-section {
    background-color: var(--color-background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rule-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rule-section h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 0.75rem;
}

.rule-section p,
.rule-section ul,
.rule-section li {
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.rule-section ul {
    padding-left: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.rule-section ul li {
    margin-bottom: 0.5rem;
}

.rule-section h3 {
    color: var(--color-text-main);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.rules-content, .rules-sections {
    margin-top: 40px;
}

/* =========================================
   Application Form Styles
   ========================================= */

/* Application Hub Page */
.application-hub-section {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 101, 242, 0.05) 50%, rgba(0, 122, 255, 0.05) 100%);
    padding-top: 80px; /* Account for fixed navbar */
}

/* Application Hub Hero */
.hub-hero {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 101, 242, 0.1) 100%);
    padding: 4em 2em 3em;
    text-align: center;
    border-bottom: 1px solid rgba(56, 56, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hub-hero-content {
    position: relative;
    z-index: 1;
}

.hub-hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, #007aff, #5865f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hub-hero-content p {
    font-size: 1.3em;
    color: #a0a0a5;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.hub-container {
    padding: 3em 2em;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hub-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f5f5f7;
    text-align: center;
}

.hub-container p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #a0a0a5;
    text-align: center;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.hub-card {
    background: rgba(28, 28, 30, 0.8);
    border: 1px solid rgba(56, 56, 58, 0.5);
    border-radius: 20px;
    padding: 2.5em;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #5865f2, #007aff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-color: rgba(0, 122, 255, 0.3);
}

.hub-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5em;
    background: linear-gradient(135deg, #007aff, #5865f2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.hub-card h3 {
    font-size: 1.6rem;
    color: #f5f5f7;
    margin-bottom: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.hub-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #a0a0a5;
    margin-bottom: 2em;
    text-align: left;
}

.hub-card .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: linear-gradient(135deg, #007aff, #5865f2);
    color: #ffffff;
    padding: 0.8em 1.5em;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    border: none;
    cursor: pointer;
}

.hub-card .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #4752c4);
}

.hub-card .cta-button::after {
    content: '→';
    transition: transform 0.3s ease;
}

.hub-card .cta-button:hover::after {
    transform: translateX(4px);
}

/* Special styling for no-access card */
.hub-card.no-access {
    border-color: rgba(255, 149, 0, 0.3);
    background: rgba(40, 28, 20, 0.8);
}

.hub-card.no-access .card-icon {
    background: linear-gradient(135deg, #ff9500, #ff6b35);
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
}

.hub-card.no-access .cta-button {
    background: linear-gradient(135deg, #ff9500, #ff6b35);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.hub-card.no-access .cta-button:hover {
    background: linear-gradient(135deg, #e6850e, #e55a2b);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.4);
}

/* Application type specific icons and colors */
.hub-card.allowlist .card-icon {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.hub-card.unban .card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.hub-card.staff .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.hub-card.firma .card-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.hub-card.ckpk .card-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.hub-card.refund .card-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hub-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5em;
    }
}

@media (max-width: 768px) {
    .application-hub-section {
        padding-top: 70px;
    }
    
    .hub-hero {
        padding: 3em 1.5em 2em;
    }
    
    .hub-hero-content h1 {
        font-size: 2.5em;
    }
    
    .hub-hero-content p {
        font-size: 1.1em;
    }
    
    .hub-container {
        padding: 2em 1.5em;
    }
    
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .hub-card {
        padding: 2em;
    }
    
    .hub-card h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hub-hero-content h1 {
        font-size: 2em;
    }
    
    .hub-hero-content p {
        font-size: 1em;
    }
    
    .hub-card {
        padding: 1.5em;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
}

/* =========================================
   Modern Rules Hub Styles
   ========================================= */

.rules-hub-container {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rules-hero {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 101, 242, 0.1) 100%);
    padding: 4em 2em 3em;
    text-align: center;
    border-bottom: 1px solid rgba(56, 56, 58, 0.3);
}

.rules-hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 0.5em;
    background: linear-gradient(135deg, #007aff, #5865f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-hero-content p {
    font-size: 1.2em;
    color: #a0a0a5;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rules-categories {
    padding: 3em 2em;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.rule-category-card {
    background: rgba(28, 28, 30, 0.8);
    border: 1px solid rgba(56, 56, 58, 0.5);
    border-radius: 16px;
    padding: 2em;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rule-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007aff, #5865f2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.rule-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 122, 255, 0.3);
}

.rule-category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 3em;
    margin-bottom: 1em;
    text-align: center;
}

.rule-category-card h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 0.8em;
    text-align: center;
}

.rule-category-card p {
    color: #a0a0a5;
    line-height: 1.6;
    margin-bottom: 1.5em;
    flex-grow: 1;
    text-align: center;
}

.category-stats {
    text-align: center;
    margin-top: auto;
}

.category-stats span {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.rules-important {
    padding: 2em;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.important-notice {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.3);
    border-radius: 12px;
    padding: 2em;
    text-align: center;
}

.important-notice h3 {
    color: #ff9f0a;
    font-size: 1.3em;
    margin-bottom: 1em;
    font-weight: 600;
}

.important-notice p {
    color: #a0a0a5;
    line-height: 1.6;
    margin-bottom: 1em;
}

.important-notice p:last-child {
    margin-bottom: 0;
    color: #f5f5f7;
}

/* Mobile Responsive for Rules Hub */
@media (max-width: 768px) {
    .rules-hero {
        padding: 3em 1em 2em;
    }
    
    .rules-hero-content h1 {
        font-size: 2.2em;
    }
    
    .rules-hero-content p {
        font-size: 1.1em;
    }
    
    .rules-categories {
        padding: 2em 1em;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .rule-category-card {
        padding: 1.5em;
    }
    
    .category-icon {
        font-size: 2.5em;
    }
    
    .rule-category-card h3 {
        font-size: 1.3em;
    }
    
    .rules-important {
        padding: 1em;
    }
    
    .important-notice {
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    .rules-hero-content h1 {
        font-size: 1.8em;
    }
    
    .rules-hero-content p {
        font-size: 1em;
    }
    
    .rule-category-card {
        padding: 1.2em;
    }
    
    .category-icon {
        font-size: 2em;
    }
    
    .rule-category-card h3 {
        font-size: 1.2em;
    }
}

/* Modern Rule Page Background */
.rules-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #181c2a 0%, #232946 100%);
    padding-bottom: 2em;
}

/* Rule Card Modern Design */
.rule-section-modern {
    background: rgba(28, 28, 30, 0.95);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(88,101,242,0.08);
    margin: 2em auto;
    max-width: 700px;
    padding: 2.2em 2em 2em 2.5em;
    position: relative;
    border-left: 8px solid #5865f2;
    transition: box-shadow 0.25s, transform 0.25s;
}
.rule-section-modern:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.28), 0 2px 12px #5865f2;
    transform: translateY(-4px) scale(1.01);
}

.rule-section-modern h2 {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 0.7em;
    background: linear-gradient(90deg, #007aff 20%, #5865f2 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.rule-section-modern ul {
    margin: 0 0 0.7em 1.2em;
    padding: 0 0 0 1.2em;
    color: #e0e0e0;
    font-size: 1.08em;
    line-height: 1.7;
}

.rule-section-modern li {
    margin-bottom: 0.5em;
}

.rule-section-modern p {
    color: #bfc7d5;
    font-size: 1.08em;
    margin-bottom: 0.5em;
}

/* Floating Back Button */
.back-link {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 2000;
    background: linear-gradient(90deg, #007aff 60%, #5865f2 100%);
    color: #fff !important;
    padding: 0.7em 1.3em;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.08em;
    box-shadow: 0 2px 12px rgba(88,101,242,0.18);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    display: inline-block;
}
.back-link:hover {
    background: linear-gradient(90deg, #5865f2 0%, #007aff 100%);
    color: #fff;
    box-shadow: 0 4px 18px #5865f2;
}

@media (max-width: 900px) {
    .rule-section-modern {
        max-width: 98vw;
        padding: 1.5em 1em 1.5em 1.2em;
    }
    .back-link {
        top: 12px;
        left: 12px;
        font-size: 1em;
        padding: 0.6em 1em;
    }
}
@media (max-width: 600px) {
    .rule-section-modern {
        padding: 1rem;
        border-left-width: 5px;
    }
    .back-link {
        top: 8px;
        left: 8px;
        font-size: 0.9rem;
        padding: 0.5em 0.8em;
    }
}

/* Modern Navbar Styles */
/* =========================================
   MODERN NAVBAR - COMPLETELY REDESIGNED
   ========================================= */

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: rgba(16, 16, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 56, 58, 0.3);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

/* Brand Section */
.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f5f5f7;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #007aff, #5865f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    color: #a0a0a5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(88, 101, 242, 0.2));
    border: 1px solid rgba(0, 122, 255, 0.3);
}



/* Admin Link Special Styling */
.admin-link {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.admin-link:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    color: inherit;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(16, 16, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 56, 58, 0.4);
    border-radius: 12px;
    padding: 0.75rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}





.dropdown-section {
    padding: 0.25rem 0;
}

.dropdown-section:not(:last-child) {
    border-bottom: 1px solid rgba(56, 56, 58, 0.3);
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #ffffff;
    padding-left: 1.5rem;
}



/* User Section */
.navbar-user {
    flex-shrink: 0;
}

.login-container {
    display: flex;
    align-items: center;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.login-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c4b9f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}



/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(56, 56, 58, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 122, 255, 0.4);
    object-fit: cover;
}

.user-name {
    color: #f5f5f7;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(16, 16, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 56, 58, 0.4);
    border-radius: 12px;
    padding: 0.75rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding-left: 1.5rem;
}



/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #f5f5f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .mobile-toggle {
        display: flex;
        order: 3;
    }

    .navbar-brand {
        order: 1;
    }

    .navbar-user {
        order: 2;
        margin-right: 1rem;
    }

    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(16, 16, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(56, 56, 58, 0.3);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        order: 4;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        box-shadow: inset 0 0 0 1px rgba(56, 56, 58, 0.3);
        background: rgba(255, 255, 255, 0.02);
    }

    .user-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
        box-shadow: inset 0 0 0 1px rgba(56, 56, 58, 0.3);
        background: rgba(255, 255, 255, 0.02);
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .user-name {
        max-width: 100px;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .brand-text {
        display: none;
    }

    .navbar-container {
        padding: 0 0.75rem;
    }

    .user-name {
        display: none;
    }

    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Make modals dark */
.modal-card-dark .modal-card-head,
.modal-card-dark .modal-card-body,
.modal-card-dark .modal-card-foot {
    background-color: #2c2f33 !important; /* Dark grey, FORCED */
    border-color: #40444b !important;
    color: #ffffff !important;
}

.modal-card-dark .modal-card-title {
    color: #ffffff !important;
}

.modal-card-dark .modal-card-body p {
    color: #dcddde !important;
}

.modal-card-dark .modal-card-body p strong {
    color: #ffffff !important;
}

/* Application details styling */
.modal-card-dark .application-details dt,
.modal-card-dark .application-details dd {
    color: #ffffff !important;
}

.modal-card-dark .application-details dt strong {
    color: #ffffff !important;
}

.modal-card-dark .application-details dd em {
    color: #a0a0a5 !important;
}

.modal-card-dark .modal-card-body h4 {
    color: #ffffff !important;
}

.modal-card-dark .modal-card-body .content {
    color: #ffffff !important;
}

.modal-card-dark .modal-card-body .content * {
    color: #ffffff !important;
}

/* Custom scrollbar for dark modal body */
.modal-card-dark .modal-card-body::-webkit-scrollbar {
    width: 8px;
}

.modal-card-dark .modal-card-body::-webkit-scrollbar-track {
    background: #23272a;
}

.modal-card-dark .modal-card-body::-webkit-scrollbar-thumb {
    background-color: #5865f2;
    border-radius: 4px;
    border: 2px solid #23272a;
}

/* Dark theme for tables */
.table {
    background-color: #2c2f33;
    color: #fff;
}
.table th, .table td {
    color: #fff;
    border-color: #40444b;
    vertical-align: middle;
}
.table thead th, .table thead td {
    color: #fff;
}
.table.is-striped tbody tr:not(.is-selected):nth-child(even) {
    background-color: #2f3136;
}
.table.is-hoverable tbody tr:not(.is-selected):hover {
    background-color: #36393f !important;
    color: #fff !important;
}

.table.is-hoverable tbody tr:not(.is-selected):hover td {
    background-color: #36393f !important;
    color: #fff !important;
}
.table a:not(.button):not(.tag) {
    color: #58a6ff;
    text-decoration: none;
}
.table a:not(.button):not(.tag):hover {
    text-decoration: underline;
}

/* Additional admin panel styling */
#admin-content {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
}

.title, .subtitle {
    color: #f0f0f0 !important;
}

.tabs li.is-active a {
    color: #5865f2 !important;
    border-bottom-color: #5865f2 !important;
}

.tabs a {
    color: #a0a0a5 !important;
}

.tabs a:hover {
    color: #f0f0f0 !important;
}

/* Force dark footer styling */
.footer {
    background-color: #1a1a1a !important;
    color: #f0f0f0 !important;
    border-top: 1px solid #333 !important;
}

/* Override Bulma's default table hover behavior */
.table tbody tr:hover {
    background-color: #36393f !important;
    color: #fff !important;
}

.table tbody tr:hover td {
    background-color: #36393f !important;
    color: #fff !important;
}

/* Ensure buttons in hovered rows maintain their styling */
.table tbody tr:hover .button {
    background-color: #5865f2 !important;
    color: #fff !important;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1219, #1a1d29);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 20px rgba(88, 101, 242, 0.4));
    animation: logoFloat 2s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5865f2, #7289da, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.loading-subtitle {
    font-size: 1.2rem;
    color: #a0a0a5;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.loading-progress {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5865f2, #7289da);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: #7289da;
    font-weight: 500;
    text-align: center;
}

.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7289da;
    margin: 0 2px;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ensure body doesn't scroll during loading */
body.loading {
    overflow: hidden;
}

/* Mobile responsiveness for loading screen */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-logo {
        width: 80px;
        margin-bottom: 1.5rem;
    }
    
    .loading-content {
        padding: 1rem;
    }
}