:root {
    --primary-green: #2ecc71; /* A more professional emerald green */
    --accent-green: #27ae60;
    --bg-dark: #0f172a; /* Deep slate/blue-grey for a more modern look */
    --panel-bg: #1e293b;
    --sidebar-bg: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-hover: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: all 0.3s ease;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.sidebar-logo img {
    max-width: 180px;
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.2));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    color: var(--text-main);
    background-color: var(--panel-bg);
}

.sidebar-nav a.active {
    color: var(--primary-green);
    background-color: rgba(46, 204, 113, 0.1);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    text-align: left;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green); /* Special green text for titles */
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: var(--primary-green); /* Special green text for titles */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.btn:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #000;
}

/* Mobile Styling */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-logo {
        margin-bottom: 1.5rem;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .dashboard-header {
        text-align: center;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

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