/*
    ======================================
    Global Dark Mode Variables & Resets
    ======================================
*/

:root {
    /* Main Dark Mode Palette */
    --primary-bg: #1e1e1e;          /* Dark charcoal/almost black for main background */
    --secondary-bg: #2d2d2d;        /* Slightly lighter dark grey for cards/sections */
    --tertiary-bg: #3c3c3c;         /* Dark grey for subtle borders/dividers */
    --primary-text: #f0f0f0;        /* Light text for readability */
    --secondary-text: #b0b0b0;      /* Lighter grey for secondary/placeholder text */
    --accent-blue: #007bff;         /* Standard blue for links/primary actions */
    --accent-green: #28a745;        /* Green for success/admin actions */
    --accent-red: #dc3545;          /* Red for errors/logout */
    --border-color: #4a4a4a;        /* Subtle border color */
    --shadow-color: rgba(0, 0, 0, 0.5); /* Darker shadow for depth */

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/*
    ======================================
    Header Styles
    ======================================
*/

.header-right {
    /* Style for the container holding all icons and the profile dropdown */
    display: flex;
    align-items: center;
    gap: var(--spacing-sm); /* Spacing between icons */
}

.header-icon-btn {
    /* Styles for the individual icon buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circular buttons */
    color: var(--primary-text);
    background-color: transparent;
    transition: background-color 0.2s ease;
    font-size: 1.2rem;
}

.header-icon-btn:hover {
    background-color: var(--tertiary-bg);
    text-decoration: none; /* Override default link hover */
}

/*
    ======================================
    Profile Dropdown Styles
    ======================================
*/

.header-style-dropdown {
    /* Container for the dropdown menu */
    position: absolute;
    top: 100%; /* Position it right below the profile icon/trigger */
    right: 0;
    z-index: 1000;
    min-width: 200px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: var(--spacing-sm) 0;
    /* You may want to set display: none; by default and use JS to toggle visibility */
    display: flex; 
    flex-direction: column;
    opacity: 1; /* Example for initial display state */
}

.header-style-dropdown a {
    /* Links inside the dropdown */
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--primary-text);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-style-dropdown a:hover {
    background-color: var(--tertiary-bg);
    text-decoration: none;
}

.header-style-dropdown-divider {
    /* Separator line */
    height: 1px;
    background-color: var(--border-color);
    margin: var(--spacing-xs) 0;
}

/* Special styling for Admin Panel link */
.header-style-dropdown a[style*="var(--accent-green)"]:hover {
    background-color: var(--accent-green);
    color: var(--secondary-bg) !important; /* White text on green hover */
}

/*
    ======================================
    Action Banner Styles
    ======================================
*/

.action-banner {
    /* Full-width strip for system messages */
    width: 100%;
    background-color: var(--accent-red); /* Using red for urgency/important notice */
    color: var(--primary-text);
    text-align: center;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.95rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}