/* ========== DARK MODE + VERCEL THEME ========== */
/* Global theme CSS - Tüm sayfaların kodu için kullanılır */

:root {
    /* VERCEL DARK PALETTE */
    --bg-primary: #0A0E27;        /* Darkest - Arka plan */
    --bg-secondary: #111827;      /* Dark bg - Kartlar */
    --bg-tertiary: #1F2937;       /* Lighter dark */
    --bg-hover: #2D3748;          /* Hover states */
    
    --primary: #00D9FF;           /* Cyan - Vercel stili */
    --primary-dark: #00A3CC;      /* Darker cyan */
    --primary-light: #4DE8FF;     /* Lighter cyan */
    
    --secondary: #7C3AED;         /* Purple */
    --accent: #FF6B9D;            /* Pink accent */
    
    --success: #10B981;           /* Green */
    --info: #3B82F6;              /* Blue */
    --warning: #F59E0B;           /* Amber */
    --danger: #EF4444;            /* Red */
    
    --text-primary: #F9FAFB;      /* Bright text */
    --text-secondary: #D1D5DB;    /* Secondary text */
    --text-tertiary: #9CA3AF;     /* Tertiary text */
    
    --border: #374151;            /* Borders */
    --border-light: #1F2937;      /* Light borders */
    
    --border-radius: 12px;
    --box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --box-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0D1120 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.3px;
}

/* ========== STAT CARD STYLES (Dashboard) ========== */
.stat-card {
    background: rgba(17, 24, 39, 0.6) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--border-radius) !important;
    padding: 1.5rem !important;
    transition: var(--transition) !important;
    backdrop-filter: blur(10px) !important;
}

.stat-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 217, 255, 0.1) !important;
}

.stat-card .icon-shape {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
}

.stat-card h2 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

.stat-card .text-muted {
    color: var(--text-secondary) !important;
}

.stat-card .text-success {
    color: var(--success) !important;
}

/* ========== CHART STYLES ========== */
.chart-container {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* ========== WIDGET STYLES ========== */
.widget {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.widget:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 217, 255, 0.1);
}

.widget-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ========== MODAL STYLES ========== */
.modal-content {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    background: rgba(31, 41, 55, 0.4) !important;
}

.modal-header .close {
    color: var(--text-primary) !important;
    opacity: 0.7;
}

.modal-header h5 {
    color: var(--text-primary) !important;
}

/* ========== DROPDOWN STYLES ========== */
.dropdown-menu {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--border-radius) !important;
    backdrop-filter: blur(10px) !important;
}

.dropdown-item {
    color: var(--text-secondary) !important;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 217, 255, 0.1) !important;
    color: var(--primary) !important;
}

.dropdown-divider {
    border-top: 1px solid var(--border) !important;
}

/* ========== INPUT STYLES ========== */
.form-control,
.form-select {
    background: rgba(31, 41, 55, 0.5) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
}

.form-control::placeholder {
    color: var(--text-tertiary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    background: rgba(31, 41, 55, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1) !important;
    outline: none !important;
}

/* ========== LINK STYLES ========== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ========== PROGRESS STYLES ========== */
.progress {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 10px;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
}

/* ========== TOOLTIP & POPOVER ========== */
.tooltip-inner {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

/* ========== UTILITIES ========== */
.text-muted {
    color: var(--text-tertiary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.bg-light {
    background: rgba(31, 41, 55, 0.4) !important;
}

.border {
    border-color: var(--border) !important;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

body {
    animation: fadeIn 0.5s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1rem !important;
    }
    
    .widget {
        padding: 1rem;
    }
}
