/* =========================================
   HEADER TOOLBAR (NEW)
   ========================================= */

#main-header {
    background: white;
    width: 100%;
}

.header-brand h1 {
    /* Inherited from html style but making sure */
    letter-spacing: -0.5px;
}

/* Override default sidebar .tool styles for header usage */
.header-tool {
    background: transparent;
    border: 1px solid transparent;
    /* No border by default */
    border-radius: 4px;
    /* More square */
    padding: 8px;
    /* Compact */
    width: 36px;
    height: 36px;
    flex-direction: row;
    /* Icon only usually */
    min-width: unset;
    box-shadow: none;
    /* No shadow by default */
    margin: 0 2px;
}

.header-tool i {
    font-size: 16px;
    /* Smaller icon in header */
    margin-bottom: 0;
    /* Remove column spacing */
    color: var(--text-secondary);
    /* Gray by default */
}

.header-tool:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: none;
    /* Disable jump */
    color: var(--text-main);
    box-shadow: none;
}

.header-tool:hover i {
    color: var(--primary);
}

/* User Section Header Specifics */
#user-section-header .auth-btn {
    /* Reuse sidebar button styles but smaller? */
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#user-section-header .auth-btn:hover {
    background: var(--primary-dark);
}

/* Plan Badges (Shiny) */
.plan-badge {
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Shiny Animation */
.plan-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* FREE: Gris Brillo */
.plan-badge.free {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    border: 1px solid #94a3b8;
}

/* BASIC: Azul Brillo */
.plan-badge.basic {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

/* PRO: Oro Brillo */
.plan-badge.pro {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #422006;
    border: 1px solid #facc15;
    text-shadow: none;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

/* =========================================
   APP LOGO & WRAPPER
   ========================================= */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    margin-right: 8px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.logo-wrapper:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.3);
    transform-origin: center center;
    z-index: 1000;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-logo {
    height: 30px;
    width: auto;
    transition: all 0.2s ease-in-out;
    /* Default: Grayish */
    filter: grayscale(100%) opacity(0.7);
}

.logo-wrapper:hover .app-logo {
    /* Logo scales with wrapper, just change color here */
    filter: invert(30%) sepia(66%) saturate(2250%) hue-rotate(208deg) brightness(96%) contrast(91%) opacity(1) drop-shadow(0 2px 5px rgba(37, 99, 235, 0.5));
}