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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #0e1012;
}



/* --- DASHBOARD GRID LAYOUT --- */

.dashboard-container {
    display: grid;
    /* 1. Profile (280px) | 2. Content (Flexible) | 3. Filters (250px) */
    grid-template-columns: 280px 1fr 250px; 
    gap: 20px;
    max-width: 1465px; /* Keeps it contained on huge screens */
    margin: 30px auto; /* Centers the whole block */
    padding: 0 20px;
    align-items: start; /* Important: Keeps sidebars at the top */
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    font-size: .8438rem;
}

/* General Box Styling */
.left-sidebar, .middle-content, .right-sidebar {
    background: white;
    border-radius: 5px;
    padding: 20px;
    /* Subtle shadow for depth */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

/* Sticky Sidebars */
.left-sidebar, .right-sidebar {
    position: sticky;
    /* Adjusted top to account for the navbar height + gap */
    top: 100px; 
    height: fit-content;
}

/* --- WELCOME BOX (Middle Column) --- */
.welcome-box {
    text-align: left;
    padding: 20px 20px;
    color: #4d5052;
    font-size: 13.5px;
    letter-spacing: -0.5px;
}

.welcome-box h2 {
    color: #0e1012;
    margin-bottom: 10px;
    margin-top: 20px;
    text-align: center;
}

/* FIXED: Replaced fixed large width with responsive width */
.welcome-gif {
    display: block;
    margin: 0 auto 15px auto;
    width: 100%;       /* Takes up available space */
    max-width: 400px;  /* Stops it from getting too huge */
    height: auto;      /* Maintains aspect ratio */
}

/* --- RIGHT SIDEBAR FILTERS --- */
.right-sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #586069;
}

.filter-group input, 
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-family: inherit;
}

/* Disabled state for filters (Before search) */
input:disabled, select:disabled {
    background-color: #f6f8fa;
    cursor: not-allowed;
    opacity: 0.7;
}

.small-text {
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    margin-top: 10px;
}

/* Helper Class to hide things */
.hidden {
    display: none;
}

/* Style for the "Created by" section */
.subtitle {
    font-size: .8438rem; 
    color: #586069;
    margin-bottom: 25px;
    text-align: left; /* Centers the name link */
    
}

/* Your Name Link */
.author-link {
    color: #000000; /* GitHub Blue */
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.author-link:hover {
    border-bottom-color: #da0909;
    color: #000000;
}

/* The Explanation Text */
.welcome-text p {
    margin-bottom: 15px;
    line-height: 1.6; /* Makes it easy to read */
    max-width: 700px; 
    margin-left: auto;
    margin-right: auto;
}

/* The API Credit (Small text at bottom) */
.api-credit {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #981010;
    text-decoration: underline;
    letter-spacing: -0.5px;
    text-align: center; /* Centers the credit */
    display: block;
    
}

.api-credit a {
    color: inherit;
    text-decoration: underline;
}

/* --- RESPONSIVE GRID (Mobile) --- */
@media (max-width: 900px) {
    .dashboard-container {
        /* Stack everything in 1 column */
        grid-template-columns: 1fr; 
    }
    
    /* Reset sticky behavior on mobile */
    .left-sidebar, .right-sidebar {
        position: static; 
    }
    
    /* Hide right sidebar on mobile? Or move to bottom? */
    /* Let's keep it at the bottom for now */
    .right-sidebar {
        order: 3; 
    }

    /* Adjust navbar for mobile */
    .search-container {
        width: 100%;
        order: 3;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    #usernameInput {
        width: 100%;
    }
}