﻿
/* هدر */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 12px 20px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* canvas برای مولکول‌ها */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* دکمه خروج */
.logout-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #3b82f6, #7c3aed);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #1e40af;
    transition: all 0.35s ease-in-out;
    flex-shrink: 0;
}

    .logout-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(59,130,246,0.5);
        background: linear-gradient(145deg, #60a5fa, #a78bfa);
    }

    .logout-btn:active {
        transform: translateY(1px);
        box-shadow: 0 3px 6px rgba(59,130,246,0.4);
    }

    .logout-btn svg {
        width: 20px;
        height: 20px;
    }

/* باکس متن */
.marquee-container {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.3);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    min-width: 150px;
    max-width: calc(100% - 120px);
}

/* متن متحرک */
.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    font-size: 16px;
    font-weight: 500;
    color: #0a1f44;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        gap: 10px;
    }

    .marquee-container {
        max-width: calc(100% - 100px);
    }

    .logout-btn {
        padding: 10px 14px;
    }

    .marquee-track {
        font-size: 15px;
    }
}
