:root {
    --accent-color: #00ff44;
    --accent-hover: #2aff6b;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: white;
    font-family: sans-serif;
    transition: background-color 0.2s, color 0.2s;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main, .page-content, .noti-page-container {
    flex: 1;
}

.page-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

body.impossible-list {
    --accent-color: #ff3333;
    --accent-hover: #ff6666;
    --bg-color: #0d0404;
}

body.impossible-list #noti-badge {
    border-color: var(--bg-color);
}

#global-nav {
    width: 100%;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.noti-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}

.noti-link:hover {
    background-color: #333333;
}

.noti-link img {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}

#noti-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--bg-color);
    z-index: 10;
    pointer-events: none;
}

.dropdown { 
    position: relative; 
    display: inline-block; 
}

.dropbtn { 
    background-color: var(--accent-color); 
    color: black; 
    padding: 10px 20px; 
    font-weight: bold; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropbtn:hover {
    background-color: var(--accent-hover);
}

.dropdown-content { 
    display: none; 
    position: absolute; 
    right: 0; 
    background-color: var(--card-bg); 
    padding-top: 10px;
    min-width: 160px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); 
    z-index: 99; 
}

.dropdown-content a, .dropdown-content button { 
    color: white; 
    padding: 12px 16px; 
    text-decoration: none; 
    display: block; 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none; 
    cursor: pointer; 
}

.dropdown-content a:hover, .dropdown-content button:hover { 
    background-color: #333; 
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

#global-footer {
    flex-shrink: 0;
    background: #111;
    border-top: 1px solid #333;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #00449E;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.impossible-list .footer-section h3 {
    color: var(--accent-color);
}

.footer-section a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
    font-size: 0.95em;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    font-size: 0.85em;
    color: #666;
    margin: 5px 0;
}