body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #f8f8f8 0%, #e3eafc 100%);
    min-height: 100vh;
    color: #686969; /* Depth Grey */
    font-size: 1rem;
}

/* Dark Mode Styles - toggled by adding 'dark-mode' class to body */
body.dark-mode {
    background: linear-gradient(120deg, #23272b 0%, #1a1d1f 100%);
    color: #e3eafc;
}

body.dark-mode .navbar {
    background: linear-gradient(90deg, #23272b 60%, #4191C7 100%);
    color: #e3eafc;
    box-shadow: 0 2px 8px rgba(65,145,199,0.18);
}
body.dark-mode .navbar-logo {
    color: #89B946;
}
body.dark-mode .navbar-links a {
    color: #e3eafc;
}
body.dark-mode .navbar-links a:hover {
    color: #89B946;
    background: none;
    text-decoration: underline;
}

body.dark-mode .card {
    background: #23272b;
    color: #e3eafc;
    box-shadow: 0 4px 24px rgba(65,145,199,0.18);
}
body.dark-mode .card:hover {
    box-shadow: 0 8px 32px rgba(65,145,199,0.28);
}

body.dark-mode table {
    background: #23272b;
    box-shadow: 0 2px 8px rgba(65,145,199,0.18);
}
body.dark-mode th, body.dark-mode td {
    color: #e3eafc;
}
body.dark-mode th {
    background: #4191C7;
    color: #fff;
    border-bottom: 2px solid #89B946;
}
body.dark-mode tr:nth-child(even) {
    background: #23272b;
}
body.dark-mode tr:hover {
    background: #4191C722;
}

body.dark-mode #comments-modal {
    background: rgba(65,145,199,0.28);
}
body.dark-mode #comments-modal > div {
    background: #23272b;
    color: #e3eafc;
    box-shadow: 0 4px 24px rgba(65,145,199,0.22);
}

body.dark-mode button {
    background: linear-gradient(90deg, #686969 60%, #4191C7 100%);
    color: #e3eafc;
    box-shadow: 0 2px 8px rgba(65,145,199,0.18);
}
body.dark-mode button:hover {
    background: linear-gradient(90deg, #23272b 60%, #4191C7 100%);
    box-shadow: 0 4px 16px rgba(65,145,199,0.28);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #23272b;
    color: #e3eafc;
    border: 1px solid #4191C7;
}
body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
    border-color: #89B946;
    background: #23272b;
}

body.dark-mode .badge {
    background: #4191C7;
    color: #fff;
}

body.dark-mode .container {
    background: #23272b;
    color: #e3eafc;
    box-shadow: 0 4px 24px rgba(65,145,199,0.18);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode label {
    color: #e3eafc;
}

/* Modern Navbar */
.navbar {
    width: 100vw;
    background: linear-gradient(90deg, #4191C7 60%, #89B946 100%); /* Beyond Blue to Grow Green */
    color: #fff;
    padding: 1em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(65,145,199,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-logo {
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #4191C7; /* Beyond Blue */
}
/* Centered navbar links */
.navbar-links.center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    width: 100%;
    margin: 1em 0;
}
.navbar-links a {
    color: #4191C7; /* Beyond Blue */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.navbar-links a:not(:first-child) {
    margin-left: 2em;
}
.navbar-links a:hover {
    color: #89B946; /* Grow Green */
    background: none;
    text-decoration: underline;
}

/* Card Style */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(65,145,199,0.10);
    padding: 2em;
    margin-bottom: 2em;
    transition: box-shadow 0.2s;
    color: #686969; /* Depth Grey */
}
.card:hover {
    box-shadow: 0 8px 32px rgba(65,145,199,0.18);
}

/* Table Modernization */
table {
    border-radius: 12px;
    overflow: hidden;
    background: #f9fbff;
    box-shadow: 0 2px 8px rgba(65,145,199,0.06);
    margin-bottom: 2em;
}
th, td {
    padding: 1em 0.7em;
    text-align: left;
    color: #686969; /* Depth Grey */
}
th {
    background: #4191C7; /* Beyond Blue */
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #89B946; /* Grow Green */
}
tr:nth-child(even) {
    background: #e3eafc;
}
tr:hover {
    background: #89B94622; /* Grow Green with transparency */
    transition: background 0.2s;
}

/* Comments Modal Styling (matches inline HTML styles) */
#comments-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#comments-modal > div {
    background: #fff;
    padding: 2em 1.5em;
    border-radius: 8px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    color: #686969;
}
#comments-modal img {
    width: 200px;
    display: block;
    margin: 0 auto 24px auto;
}
#comments-modal h2 {
    margin-top: 0;
    font-size: 1.2em;
}
#comments-modal-content {
    margin-bottom: 1em;
}
#close-comments-modal {
    background: #007bff;
    color: #fff;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* EE Logo Styling */
.ee-logo {
    width: 200px;
    display: block;
    margin: 0 auto 24px auto;
}

/* Dark mode compatibility for EE Logo */
body.dark-mode .ee-logo {
    filter: brightness(0.85) contrast(1.2);
}
/* Dark mode compatibility for comments modal */
body.dark-mode #comments-modal {
    background: rgba(65,145,199,0.28);
}
body.dark-mode #comments-modal > div {
    background: #23272b;
    color: #e3eafc;
    box-shadow: 0 2px 8px rgba(65,145,199,0.22);
}
body.dark-mode #close-comments-modal {
    background: #4191C7;
    color: #fff;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Buttons */
button {
    background: linear-gradient(90deg, #4191C7 60%, #89B946 100%); /* Beyond Blue to Grow Green */
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(65,145,199,0.08);
    width: auto;
    min-width: 120px;
    padding: 0.7em 1.5em;
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s;
}
button:hover {
    background: linear-gradient(90deg, #686969 60%, #4191C7 100%); /* Depth Grey to Beyond Blue */
    box-shadow: 0 4px 16px rgba(65,145,199,0.16);
}

input, select, textarea {
    border-radius: 8px;
    border: 1px solid #4191C7; /* Beyond Blue */
    padding: 0.7em 1em;
    margin-bottom: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #f8f8fa;
    color: #686969; /* Depth Grey */
}
input:focus, select:focus, textarea:focus {
    border-color: #89B946; /* Grow Green */
    outline: none;
    background: #e3eafc;
}

/* Add badge style for status, etc. */
.badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 12px;
    background: #89B946;
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 0.5em;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
    .container {
        padding: 1em;
        margin: 1em;
        max-width: 100vw;
    }
    h1 {
        font-size: 1.3em;
    }
    h2 {
        font-size: 1.1em;
    }
    button, input, select, textarea {
        font-size: 1em;
        padding: 0.7em;
    }
    .navbar {
        flex-direction: column;
        padding: 1em;
    }
    .card {
        padding: 1em;
    }
    .navbar-links {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 1em;
        margin-bottom: 1em;
    }
    .navbar-links a {
        margin-left: 1em;
        margin-right: 1em;
    }
}

.container {
    max-width: 900px;
    width: 95vw;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(65,145,199,0.08);
}

h1, h2, h3 {
    color: #686969; /* Depth Grey */
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #4191C7; /* Beyond Blue */
    padding: 0.5em 1em;
    margin-bottom: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

button {
    background: #4191C7;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(65,145,199,0.08);
    width: auto;
    min-width: 120px;
}

button:hover {
    background: #686969;
}

input:focus, select:focus, textarea:focus {
    border-color: #4191C7;
    outline: none;
}

label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 500;
    color: #686969; /* Depth Grey */
}

@media (max-width: 600px) {
    .container {
        padding: 1em;
        margin: 1em;
        max-width: 100vw;
    }
    h1 {
        font-size: 1.3em;
    }
    h2 {
        font-size: 1.1em;
    }
    button, input, select, textarea {
        font-size: 1em;
        padding: 0.7em;
    }
}

.flex {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.center {
    text-align: center;
}
.mt-2 {
    margin-top: 2em;
}
.mb-2 {
    margin-bottom: 2em;
}
