/**
 * Pozitif Ekip Hub - Düzen (Layout) Stilleri
 * Dark Sidebar + Crisp White Main Content
 */

/* Ana Grid Düzeni */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* ==========================================================================
   1. SOL MENÜ (DARK ANTRASİT SIDEBAR)
   ========================================================================== */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(253, 54, 110, 0.35);
}

.brand-text h2 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.6875rem;
    color: var(--sidebar-text);
    margin-top: 2px;
}

.sidebar-nav {
    list-style: none;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-section-title {
    padding: 1rem 1.25rem 0.35rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sidebar-title);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    font-weight: 600;
}

.nav-link .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.8;
}

.nav-link.active .material-symbols-outlined {
    color: var(--primary);
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    font-size: 10px;
    background: rgba(253, 54, 110, 0.15);
    color: #ff4d7f;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(253, 54, 110, 0.3);
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fd366e, #f97316);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(253, 54, 110, 0.3);
    flex-shrink: 0;
}

.user-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.user-role {
    font-size: 10.5px;
    color: var(--sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.btn-logout-sidebar {
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}
.btn-logout-sidebar:hover {
    color: #f87171;
}

/* ==========================================================================
   2. SAĞ İÇERİK ALANI (BEYAZ & LIGHT CONTENT)
   ========================================================================== */
.main-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg);
}

/* Üst Bar (Topbar - 52px Kompakt Beyaz) */
.topbar {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.project-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 12px;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.project-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success-light);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sayfa İçeriği */
.content-body {
    padding: 1.5rem 1.75rem 4.5rem;
    max-width: 1400px;
    width: 100%;
}

.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sayfa Başlığı */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-title h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text);
}

.page-title p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.45;
}

/* ==========================================================================
   3. SAĞDAN KAYAN ÇEKMECE (DRAWER - BEYAZ & TEMİZ)
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 90vw;
    background-color: #ffffff;
    box-shadow: var(--shadow-drawer);
    border-left: 1px solid var(--border);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.22s ease-out;
}
.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}
.drawer-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.drawer-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
}
