﻿/* ==========================================================================
   EBYÜ e-Portal Modern Vibrant UI CSS 
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --sidebar-w: 280px;
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-cyan: #06b6d4;
    --brand-gold: #f59e0b;
    --dark-bg: #0f172a;
    --sidebar-grad: linear-gradient(180deg, #1e1b4b 0%, #0f172a 40%, #090d16 100%);
    --card-glow: rgba(37, 99, 235, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --soft-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background: #f8fafc;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* ==========================================
   SIDEBAR & BRANDING
   ========================================== */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-grad);
    color: #fff;
    position: fixed;
    height: 100vh;
    z-index: 1060;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

    .sidebar-brand::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
        pointer-events: none;
    }

.sidebar-logo {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.sidebar-brand:hover .sidebar-logo {
    transform: scale(1.04);
}

.brand-uni-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
}

.brand-portal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* NAVIGATION LINKS */
.sidebar nav {
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 1rem 0;
}

    .sidebar nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
    }

.nav-section-title {
    padding: 1.25rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.25rem;
    margin: 4px 12px;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

    .nav-link-custom i {
        font-size: 1.2rem;
        color: #64748b;
        transition: var(--transition);
    }

    .nav-link-custom:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }

        .nav-link-custom:hover i {
            color: var(--accent-cyan);
            transform: translateX(2px);
        }

    /* ACTIVE STATE - SEÇİLİ MENÜ */
    .nav-link-custom.active {
        color: #ffffff !important;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
        font-weight: 700;
    }

        .nav-link-custom.active i {
            color: #ffffff !important;
        }

.nav-link-child {
    padding-left: 2.5rem !important;
    font-size: 0.83rem;
    color: #94a3b8;
}

.transition-icon {
    transition: transform 0.2s ease-in-out;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* SIDEBAR FOOTER */
.sidebar-footer {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.version-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.v-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 6px;
    text-transform: uppercase;
}

.v-number {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-family: monospace;
    font-weight: 700;
}

.dev-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

    .dev-info i {
        color: var(--primary-blue);
        font-size: 0.85rem;
    }

/* ==========================================
   CONTENT WRAPPER & TOP NAVBAR
   ========================================== */
.content-wrapper {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
}

.top-navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.module-pill {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .module-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        color: #ffffff;
    }

.catalog-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    transition: var(--transition);
}

    .catalog-btn:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
        color: #0f172a;
    }

/* USER PROFILE CARD */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 14px 5px 8px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    cursor: pointer;
}

    .user-profile-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

.user-name-text {
    font-weight: 700;
    font-size: 0.875rem;
    color: #0f172a;
    line-height: 1.2;
}

.user-role-badge {
    font-size: 0.68rem;
    color: var(--primary-blue);
    font-weight: 700;
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.avatar-wrapper {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* PREMIUM DROPDOWN MENU */
.dropdown-menu-premium {
    margin-top: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12) !important;
    min-width: 340px !important;
    border-radius: 16px !important;
    z-index: 1050 !important;
    padding: 8px !important;
    background: #ffffff;
}

.dropdown-header-custom {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: 12px;
}

.premium-item {
    display: flex;
    align-items: center;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: var(--transition);
}

    .premium-item:hover {
        background: #f1f5f9 !important;
        color: var(--primary-blue) !important;
        transform: translateX(3px);
    }

.logout-btn-premium {
    width: 100%;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
}

    .logout-btn-premium:hover {
        background: #ef4444;
        color: #ffffff;
    }

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .content-wrapper {
        margin-left: 0;
        width: 100%;
    }

    body.show-sidebar .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1050;
    }

    body.show-sidebar .sidebar-overlay {
        display: block;
    }
}
