body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: #f4f4f4;
}

.index-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.index-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.index-title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.index-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #dcdcdc;
}

.dashboard-grid a {
    display: inline-block;
    margin: 15px;
    padding: 12px 25px;
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dashboard-grid a:hover {
    background-color: #16a085;
}

.page-section {
    padding: 50px;
    background-color: rgba(255,255,255,0.08);
    margin: 40px auto;
    width: 80%;
    border-radius: 15px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.page-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-section p {
    font-size: 1.1rem;
    color: #eee;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

:root {
    --bg-color: #f2f4f8;
    --text-color: #333;
    --box-bg: #ffffffcc;
    --accent-color: #6c63ff;
    --accent-hover: #574b90;
}

body.dark-mode {
    --bg-color: #1e1e2f;
    --text-color: #e0e0e0;
    --box-bg: #2c2c3a;
    --accent-color: #9b59b6;
    --accent-hover: #8e44ad;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.5s, color 0.5s;
}

.index-box, .page-section {
    background-color: var(--box-bg);
    color: var(--text-color);
}

.dashboard-grid a {
    background-color: var(--accent-color);
    color: white;
}

.dashboard-grid a:hover {
    background-color: var(--accent-hover);
}

.page-section h2, .index-title {
    color: var(--text-color);
}

:root {
    --bg-color: #f0f2f5;
    --text-color: #1c1c1c;
    --box-bg: #ffffffec;
    --accent-color: #6c63ff;
    --accent-hover: #574b90;
}

body.dark-mode {
    --bg-color: #1e1e2f;
    --text-color: #f1f1f1;
    --box-bg: #2c2c3a;
    --accent-color: #9b59b6;
    --accent-hover: #8e44ad;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
}

.index-box, .page-section {
    background-color: var(--box-bg);
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
}

.index-title, .page-section h2 {
    color: var(--text-color);
}

.index-subtitle, .page-section p {
    color: var(--text-color);
}

.dashboard-grid a {
    background-color: var(--accent-color);
    color: white;
    transition: background 0.3s ease;
}

.dashboard-grid a:hover {
    background-color: var(--accent-hover);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.index-overlay {
    flex: 1;
}

footer {
    margin-top: auto;
    background-color: var(--box-bg);
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.main-header {
    background-color: var(--box-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

#mode-toggle {
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 20px;
    transition: transform 0.3s ease;
}

#mode-toggle:hover {
    transform: scale(1.2);
}
