/* Core Variables and Base Styles - Imposter Admin Panel */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #141414;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    overflow-x: hidden;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Custom Checkbox Styling - Unified */
.checkbox-container,
.checkbox-group {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.checkbox-container input[type="checkbox"],
.checkbox-group input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: -1;
    left: -9999px;
    top: -9999px;
}

.checkbox-custom,
.checkmark {
    position: relative;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    border-radius: 3px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
    box-sizing: border-box;
}

.checkbox-container:hover .checkbox-custom,
.checkbox-group:hover .checkmark,
.checkbox-label:hover .checkmark {
    border-color: var(--accent-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom,
.checkbox-group input[type="checkbox"]:checked + .checkmark,
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after,
.checkbox-group input[type="checkbox"]:checked + .checkmark::after,
.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.checkbox-container input[type="checkbox"]:focus + .checkbox-custom,
.checkbox-group input[type="checkbox"]:focus + .checkmark,
.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-container .checkbox-label,
.checkbox-group .checkbox-label,
.checkbox-label {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 400;
    user-select: none;
    flex: 1;
    line-height: 1.5;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-container input[type="checkbox"]:disabled + .checkbox-custom,
.checkbox-group input[type="checkbox"]:disabled + .checkmark,
.checkbox-label input[type="checkbox"]:disabled + .checkmark {
    background: var(--border-color);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.checkbox-container input[type="checkbox"]:disabled ~ .checkbox-label,
.checkbox-group input[type="checkbox"]:disabled ~ .checkbox-label,
.checkbox-label input[type="checkbox"]:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Global checkbox reset - tüm sayfalardaki native checkboxları gizle */
input[type="checkbox"]:not(.keep-native) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

/* Checkmark sistemi olan input'ları tamamen gizle */
.checkbox-label input[type="checkbox"]:not(.keep-native),
.checkbox-group input[type="checkbox"]:not(.keep-native),
.checkbox-container input[type="checkbox"]:not(.keep-native) {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    z-index: -1 !important;
    left: -9999px !important;
    top: -9999px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

input[type="checkbox"]:not(.keep-native):hover {
    border-color: var(--accent-color);
}

input[type="checkbox"]:not(.keep-native):checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

input[type="checkbox"]:not(.keep-native):checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

input[type="checkbox"]:not(.keep-native):focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="checkbox"]:not(.keep-native):disabled {
    background: var(--border-color);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* Buttons */
.btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: calc(var(--border-radius) - 6px);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--error-color);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive Base */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
}