/* assets/css/header-styles.css - MyJeremias Header Styles */
/* Extracted from header.php for better organization */

/* Inter as default font */
html, body, input, select, button, table, th, td {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* ========================================================================
   LOGO SUBTLE HOVER ANIMATION
   ======================================================================== */

.logo-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-glossy {
    position: relative;
    transition: all 0.2s ease;
}

.logo-glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.logo-container:hover .logo-glossy::before {
    left: 100%;
}

/* Language Switcher - WYŁĄCZONE (TYLKO PL) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-switcher a, .lang-switcher div {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    position: relative;
}

.lang-switcher a:hover {
    color: #004f9f;
    background-color: rgba(0, 79, 159, 0.08);
}

/* Active language - Jeremias Yellow */
.lang-switcher a.lang-active, .lang-switcher .lang-active {
    background-color: #ffee00 !important;
    color: #004f9f !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 238, 0, 0.4);
}

/* Alternative if using Tailwind classes */
.lang-active-tw {
    @apply bg-jeremiasYellow text-jeremiasBlue font-semibold shadow-sm;
}

/* Unique logout button style - overrides all other styles */
.logout-btn-unique {
    background-color: #ffee00 !important;
    color: #1c1c1b !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.logout-btn-unique:hover {
    background-color: #f4e000 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.logout-btn-unique:active {
    transform: scale(0.98) !important;
}

/* Spacing for logout button icon and text */
.logout-btn-unique i {
    margin-right: 8px !important;
}

/* ========================================================================
   SUBTLE HEADER USER INFO - MINIMAL & ELEGANT
   ======================================================================== */

.header-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(4px);
}

.header-user-info:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 79, 159, 0.3);
    box-shadow: 0 2px 4px rgba(0, 79, 159, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.header-user-info:hover .header-user-avatar {
    border-color: rgba(0, 79, 159, 0.4);
    background: #ffffff;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-user-avatar img.company-logo {
    object-fit: contain;
    padding: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.header-user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-user-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.header-user-meta {
    font-size: 0.65rem;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.header-user-role {
    background: rgba(0, 79, 159, 0.1);
    color: #004f9f;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.header-user-id {
    color: #d1d5db;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.6rem;
}

/* Company name for clients */
.header-company-name {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.65rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dashboard link indicator - very subtle */
.header-dashboard-icon {
    color: #e5e7eb;
    font-size: 0.7rem;
    margin-left: auto;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.header-user-info:hover .header-dashboard-icon {
    color: #004f9f;
    opacity: 1;
    transform: translateX(1px);
}

/* Responsive design - more aggressive hiding */
@media (max-width: 768px) {
    .header-user-info {
        padding: 5px 8px;
        gap: 6px;
    }
    
    .header-user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .header-user-name {
        font-size: 0.75rem;
    }
    
    .header-user-meta {
        font-size: 0.6rem;
        gap: 3px;
    }
    
    .header-user-role {
        font-size: 0.55rem;
        padding: 1px 3px;
    }
    
    .header-user-id {
        display: none;
    }
    
    .header-company-name {
        font-size: 0.6rem;
        max-width: 80px;
    }
    
    .header-dashboard-icon {
        font-size: 0.65rem;
    }
}

@media (max-width: 640px) {
    .header-user-details {
        display: none;
    }
    
    .header-user-info {
        min-width: auto;
    }
    
    .header-dashboard-icon {
        display: block;
        margin-left: 4px;
    }
}

/* Header layout adjustments */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .header-actions {
        gap: 6px;
    }
}

/* Hide user info on very small screens if needed */
@media (max-width: 480px) {
    .header-user-info {
        display: none;
    }
}