/* ==================== NISSERT Logo için Güncellenmiş Sidebar Stilleri ==================== */

/* Sidebar - Gradient background */
.sidebar {
    width: var(--sidebar-width, 280px);
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all var(--transition-speed, 0.3s) ease;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Header - Logo Container */
.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

/* Logo Icon Container */
.logo-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo icon image */
.logo-icon img {
    width: 48px;
    height: 48px;
    /* Beyaz logo için glow efekti */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo icon image - Contrast version (beyaz circle'lı) */
.logo-icon img.logo-contrast {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* Logo Text Container */
.logo-text {
    flex: 1;
    min-width: 0;
}

/* NISSERT Text */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ÜSTAS Subtitle */
.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Collapsed Sidebar - Logo adjustments */
.sidebar.collapsed .logo-icon {
    margin: 0 auto;
}

.sidebar.collapsed .logo-icon img {
    width: 40px;
    height: 40px;
}

.sidebar.collapsed .logo-text {
    display: none;
    opacity: 0;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .logo-icon img {
        width: 44px;
        height: 44px;
    }
}

/* ==================== Alternative: Topbar Logo (Mobile) ==================== */
.topbar-logo {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.topbar-logo img {
    height: 36px;
    /* Orijinal gradient logo için - beyaz background'da */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.topbar-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .topbar-logo {
        display: flex;
    }
}

/* ==================== Footer Logo ==================== */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    height: 20px;
    opacity: 0.8;
}

.footer-brand strong {
    color: var(--primary, #667eea);
}

/* ==================== Print Logo ==================== */
@media print {
    .print-logo {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .print-logo img {
        height: 50px;
    }
    
    .print-logo-text h1 {
        margin: 0;
        font-size: 1.5rem;
        color: #667eea;
    }
    
    .print-logo-text p {
        margin: 0;
        font-size: 0.875rem;
        color: #6b7280;
    }
}

/* ==================== Loading Screen Logo ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    text-align: center;
}

.loading-logo img {
    width: 80px;
    height: 80px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    margin-top: 1rem;
    color: var(--gray, #6b7280);
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* ==================== Login/Logout Logo ==================== */
.login-logo,
.logout-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img,
.logout-logo img {
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.login-title,
.logout-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.login-subtitle,
.logout-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* ==================== Logo Hover Efektleri ==================== */
.logo-icon img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar-header:hover .logo-icon img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.sidebar-header:hover .logo {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==================== Dark Mode Support (Optional) ==================== */
@media (prefers-color-scheme: dark) {
    .topbar-logo img {
        /* Koyu temada beyaz logo kullan */
        filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.1));
    }
}

/* ==================== Utility Classes ==================== */
.logo-white {
    /* Force white logo */
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-colored {
    /* Force colored logo */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.logo-glow {
    /* Add glow effect */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}
