/* Nesine Responder V3 - Krem/Gri Şeffaf Tema */
:root {
    --bg-main: #f5f5f0;
    --bg-sidebar: #e8e8e0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.1);
    --text: #333333;
    --text-muted: #666666;
    --accent: #5c5c5c;
    --accent-light: #8a8a8a;
}

* { box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e4dc 100%);
    color: var(--text);
    min-height: 100vh;
}

.sidebar {
    background: rgba(232, 232, 224, 0.95);
    backdrop-filter: blur(10px);
}

.nav-item {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
}
.nav-item.active {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font-weight: 500;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { 
    background: var(--accent-light);
    transform: translateY(-1px);
}
.btn-danger {
    background: #e74c3c;
    color: white;
}
.btn-danger:hover { background: #c0392b; }
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(0, 0, 0, 0.1); }

table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
th { 
    color: var(--text-muted); 
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
}
tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--text);
    width: 100%;
    transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(92, 92, 92, 0.1);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal.hidden { display: none; }
.modal-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.live-item {
    background: rgba(255, 255, 255, 0.6);
    border-left: 3px solid var(--accent);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 240px;
        z-index: 100;
        transition: left 0.3s ease;
    }
    .sidebar.open { left: 0; }
    
    main { margin-left: 0 !important; }
    
    .stat-card { padding: 0.75rem; }
    .stat-value { font-size: 1.25rem; }
    
    .card { padding: 1rem; }
    
    table { font-size: 0.8rem; }
    th, td { padding: 0.5rem; }
    
    .mobile-menu-btn {
        display: block !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 101;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0.5rem;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}

/* Tabs */
.tab-btn {
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    color: var(--text);
}
.tab-btn.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.tab-content.hidden {
    display: none;
}

/* File input styling */
input[type="file"] {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
}
input[type="file"]::-webkit-file-upload-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 0.5rem;
}
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--accent-light);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: rgba(0, 0, 0, 0.15); 
    border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }
