/* HEADER */

header {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 1000;
    position: relative;
}

header .container {
    height: 100%;
}

header .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
}

/* Styl linków (ikon) */
header .nav a.interact {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

/* =============================
     FILTROWANIE TICKETÓW (ADMIN)
     ============================= */
.ticket-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 16px;
    backdrop-filter: blur(3px);
}

.ticket-filter-form label {
    font-weight: 600;
    color: var(--accent);
    margin-right: 8px;
}

.ticket-filter-form select {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s;
}
.ticket-filter-form select:focus {
    border-color: var(--success);
    outline: none;
}


header .nav a.interact img {
    width: 48px;
    height: 48px;
    border-radius: 16px; /* Squircle style */
    background: var(--bg-card);
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
}

/* Hover i Aktywny stan */
header .nav a.interact:hover img, 
header .nav a.active img {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
    background: rgba(0, 210, 255, 0.1);
}

header .nav a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 0 4px 4px 0;
}

/* Tooltipy (.info hidden) */
header .nav a .info {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
}

/* Usunięcie klasy .hidden przez Hover (obsługa JS którą masz w kodzie) */
header .nav a.interact:hover .info {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Ikona Discorda na sam dół */
header .nav a.to_bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

/* Specjalny efekt dla wylogowania */
header .nav a[href="logout.php"] img:hover {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 79, 79, 0.3);
    background: rgba(255, 79, 79, 0.1);
}

/* =========================================
   RESPONSYWNOŚĆ HEADER-A
   ========================================= */

@media (max-width: 768px) {
    header {
        flex: 0 0 70px;
        width: 100%;
        height: 70px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 0 10px;
    }

    header .nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    header .nav a.to_bottom {
        margin-top: 0;
        margin-bottom: 0;
    }

    header .nav a.active::before {
        left: 20%;
        top: auto;
        bottom: -10px;
        width: 60%;
        height: 3px;
    }

    header .nav a .info {
        display: none; /* Ukrywamy tooltipy na mobile */
    }
}

