/* ==========================
   GLOBAL HEADER
========================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #111827;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.nav-links a {
    margin: 0 15px;
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    font-weight: 500;
}

.logout-btn {
    background: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.logout-btn:hover {
    background: #dc2626;
}

/* ==========================
   MAIN CONTENT
========================== */
.main-content {
    padding: 30px 40px;
}

/* ==========================
   FOOTER
========================== */
.main-footer {
    text-align: center;
    padding: 20px;
    background: #f3f4f6;
    margin-top: 50px;
}

/* ==========================
   ALERTS
========================== */
.alert {
    padding: 14px 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 1100px;
    border-radius: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 5px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #7f1d1d;
    border-left: 5px solid #ef4444;
}

.alert-info {
    background: #e0f2fe;
    color: #075985;
    border-left: 5px solid #0ea5e9;
}

/* ==========================
   ANIMATIONS
========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}