:root {
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(255, 255, 255, 0.12);
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --gradient-1: #3b82f6;
    --gradient-2: #8b5cf6;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling on laptop/desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}

/* Dynamic Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1a1f35 0%, #0b0f19 100%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    max-width: 500px; max-height: 500px;
    background: var(--gradient-1);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    max-width: 600px; max-height: 600px;
    background: var(--gradient-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 50%;
    width: 40vw; height: 40vw;
    max-width: 400px; max-height: 400px;
    background: #ec4899;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Layout */
.container {
    width: 96vw;
    max-width: 1600px; /* Great for laptop screens */
    height: 85vh; /* Fill the screen */
    max-height: 96vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 4vh;
    flex-shrink: 0;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

header h1 span {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
    flex-grow: 1;
}

/* Category Containers */
.category {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5vw;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2vh;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    flex-shrink: 0;
    padding-bottom: 1.5vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category h2 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Grid & Cards */
.grid {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    flex-grow: 1;
    overflow-y: auto;
}

/* Custom Scrollbar for overflow if needed */
.grid::-webkit-scrollbar {
    width: 4px;
}
.grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5vh 1.5vw;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    flex-grow: 1; /* Makes the buttons stretch out */
    max-height: 80px; /* Maximum height limit */
}

.card:hover {
    transform: translateX(6px);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card i {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.2s ease;
}

.card:hover i {
    transform: scale(1.15);
}

.card span {
    font-size: 1.15rem;
    font-weight: 500;
}

/* Responsive adjustments for phones and tablets */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }
    .card {
        padding: 1.2vh 2vw;
    }
}

/* Mobile specific styling for minimal vertical scrolling */
@media (max-width: 576px) {
    body {
        height: auto;
        overflow-y: auto; /* Allow vertical scroll on phone if necessary */
        padding: 2vh 0;
    }
    .container {
        height: auto;
        max-height: none;
        width: 92vw;
    }
    header h1 {
        font-size: 2rem;
    }
    .dashboard {
        grid-template-columns: 1fr;
        gap: 2vh;
    }
    .category {
        padding: 2.5vw;
    }
    .grid {
        /* On phone, we use 2 columns inside categories to cut vertical space in half! */
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5vw;
    }
    .card {
        padding: 1.5vh 1.5vw;
        flex-direction: column; /* Stack icon and text to fit in half width */
        justify-content: center;
        text-align: center;
        gap: 0.5vh;
    }
    .card i {
        font-size: 1.25rem;
    }
    .card span {
        font-size: 0.8rem;
    }
    .card:hover {
        transform: translateY(-2px); /* Vertical lift instead of horizontal */
    }
}
