:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #7289da;
    --header-height: 60px;
    --success-color: #43b581;
    --error-color: #f04747;
    --warning-color: #faa61a;
    --info-color: #5865f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.header {
    background-color: var(--bg-secondary);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.5;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background-color: var(--accent-color);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 20px) 20px 20px;
}

/* Messages Styles */
.messages-container {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.message-success {
    background-color: rgba(67, 181, 129, 0.2);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.message-error {
    background-color: rgba(240, 71, 71, 0.2);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

.message-warning {
    background-color: rgba(250, 166, 26, 0.2);
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

.message-info {
    background-color: rgba(88, 101, 242, 0.2);
    border-left: 4px solid var(--info-color);
    color: var(--info-color);
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.message-close:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logout Page Styles */
.logout-message {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown > a {
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-secondary);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    right: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.dropdown-content a:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.dropdown-content a:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Error page styles */
.error-content {
    margin: 20px 0;
    text-align: center;
}

.error-content p {
    margin: 10px 0;
    color: var(--text-color);
    font-size: 16px;
}

.form-card h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Specific error styles */
.error-404 h1 {
    color: #e74c3c;
}

.error-403 h1 {
    color: #e67e22;
}

.error-500 h1 {
    color: #c0392b;
}

.error-405 h1 {
    color: #8e44ad;
} 