/* ==========================================================================
   ÇANKAYA DEDEKTİF - PROFESYONEL YÖNETİM PANELİ (ADMIN CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700&display=swap');

:root {
    --admin-bg: #090D1A;
    --admin-sidebar: #060913;
    --admin-card: #0F172A;
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-border-gold: rgba(212, 175, 55, 0.3);
    
    --gold: #D4AF37;
    --gold-hover: #F3E5AB;
    --emerald: #10B981;
    --blue: #38BDF8;
    --red: #EF4444;
    --purple: #8B5CF6;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--admin-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Sidebar */
.admin-sidebar {
    width: 270px;
    background: var(--admin-sidebar);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

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

.sidebar-header img {
    height: 40px;
    width: auto;
}

.sidebar-nav {
    padding: 1.2rem 0.8rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.8rem 0.8rem 0.3rem 0.8rem;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link svg {
    flex-shrink: 0;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

.sidebar-link.active {
    font-weight: 700;
    border-left: 3px solid var(--gold);
}

.badge-count {
    margin-left: auto;
    background: var(--red);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.sidebar-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main Content Area */
.admin-main {
    margin-left: 270px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 70px;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-body {
    padding: 2rem;
    flex-grow: 1;
}

/* Page Header */
.page-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFF;
    letter-spacing: -0.5px;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Cards & Containers */
.card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFF;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.admin-btn-gold {
    background: linear-gradient(135deg, #FCEE21 0%, #D4AF37 50%, #AA771C 100%);
    color: #060913;
    font-weight: 700;
}

.admin-btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.admin-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-btn-danger:hover {
    background: #EF4444;
    color: #FFF;
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.badge-info { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }

/* Forms */
.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #CBD5E1;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(6, 9, 19, 0.7);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #FFF;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

/* Flash Messages */
.admin-alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.admin-alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid #10B981; color: #10B981; }
.admin-alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid #EF4444; color: #EF4444; }

@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-main {
        margin-left: 0;
    }
}
