:root {
    --bg-color: #0b0f19;
    --card-bg: #161d2b;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(11, 15, 25, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body, html {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', 'Apple SD Gothic Neo', sans-serif;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px; /* Narrower for 3 columns */
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Navbar */
.navbar {
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Inversion removed as emblem.png is already styled for dark background */
    image-rendering: -webkit-optimize-contrast;
}

.btn-login {
    text-decoration: none;
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-base);
}

/* Main Dashboard */
.dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

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

.title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 1.5rem;
}

.grid-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    min-height: 200px;
}

.grid-item:hover {
    background: #1f2937;
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.grid-item.active {
    border: 1.5px solid var(--accent-blue);
    background: linear-gradient(135deg, #161d2b 0%, #1e293b 100%);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.grid-item.disabled {
    opacity: 0.3;
    cursor: default;
}

.grid-item.disabled:hover {
    transform: none;
}

.item-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.grid-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: keep-all;
    line-height: 1.4;
}

.grid-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
}

.badge {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 700;
}

/* Footer */
footer {
    height: 80px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 850px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .title { font-size: 2.2rem; }
}

@media (max-width: 500px) {
    .grid { grid-template-columns: 1fr; }
    .dashboard { padding: 2rem 0; }
    .title { font-size: 1.8rem; }
    .header { margin-bottom: 2.5rem; }
    .logo-img { height: 40px; width: 40px; }
    .logo { font-size: 1rem; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive */
@media (max-height: 700px) {
    .grid { height: 350px; gap: 1rem; }
    .title { font-size: 2rem; }
}
