/* AsFlow Ultra Modern CSS Design System & Skin System */

/* Skin 1: Dark Glass (Varsayılan Karanlık Cam) */
:root, html[data-theme="dark-glass"] {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Skin 2: Light Modern (Aydınlık Kurumsal) */
html[data-theme="light-modern"] {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #475569;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    --dark-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
html[data-theme="light-modern"] .bg-dark {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
html[data-theme="light-modern"] .text-light {
    color: #0f172a !important;
}
html[data-theme="light-modern"] .border-secondary {
    border-color: #cbd5e1 !important;
}
html[data-theme="light-modern"] .form-control, html[data-theme="light-modern"] .form-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Skin 3: Cyberpunk / Midnight Neon (Gece Neonu) */
html[data-theme="cyberpunk-neon"] {
    --primary: #00f2fe;
    --primary-hover: #4facfe;
    --secondary: #8a2be2;
    --success: #00ff87;
    --warning: #ffb703;
    --danger: #ff0055;
    --info: #00f2fe;
    --dark-bg: #060913;
    --card-bg: #0d1322;
    --text-main: #e0f2fe;
    --text-muted: #38bdf8;
    --border-color: #1e293b;
    --glass-bg: rgba(13, 19, 34, 0.9);
    --shadow-sm: 0 1px 3px rgba(0,242,254,0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 242, 254, 0.15);
}

/* Skin 4: Emerald Corporate (Zümrüt Yeşili) */
html[data-theme="emerald-corporate"] {
    --primary: #10b981;
    --primary-hover: #059669;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark-bg: #022c22;
    --card-bg: #064e3b;
    --text-main: #ecfdf5;
    --text-muted: #6ee7b7;
    --border-color: #065f46;
    --glass-bg: rgba(6, 78, 59, 0.9);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Skin 5: Sunset Amber (Gün Batımı Kehribar) */
html[data-theme="sunset-amber"] {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --secondary: #9a3412;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --dark-bg: #1a0c16;
    --card-bg: #2d1527;
    --text-main: #fff7ed;
    --text-muted: #fdba74;
    --border-color: #4a1d3f;
    --glass-bg: rgba(45, 21, 39, 0.9);
}

/* Skin 6: Oceanic Deep (Derin Okyanus Mavi) */
html[data-theme="oceanic-deep"] {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;
    --info: #38bdf8;
    --dark-bg: #031b33;
    --card-bg: #072c54;
    --text-main: #f0f9ff;
    --text-muted: #7dd3fc;
    --border-color: #0c4a6e;
    --glass-bg: rgba(7, 44, 84, 0.9);
}

/* Skin 7: Amethyst Velvet (Ametist Kadife Moru) */
html[data-theme="amethyst-velvet"] {
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --secondary: #4c1d95;
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #f43f5e;
    --info: #38bdf8;
    --dark-bg: #130924;
    --card-bg: #22123b;
    --text-main: #faf5ff;
    --text-muted: #d8b4fe;
    --border-color: #3b1a60;
    --glass-bg: rgba(34, 18, 59, 0.9);
}

/* Skin 8: Slate Platinum (Platin Gri Minimal) */
html[data-theme="slate-platinum"] {
    --primary: #64748b;
    --primary-hover: #475569;
    --secondary: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --dark-bg: #18181b;
    --card-bg: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border-color: #3f3f46;
    --glass-bg: rgba(39, 39, 42, 0.9);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header img {
    height: 38px;
    object-fit: contain;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    height: 65px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.content-body {
    padding: 30px;
    flex: 1;
}

/* Cards & Panels */
.card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-header-custom h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #047857); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-details h5 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-details h3 {
    margin: 4px 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tables */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-modern td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.table-modern tr:hover {
    background-color: rgba(51, 65, 85, 0.4);
}

/* Badges */
.badge-modern {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-info { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }

/* Login Page Styling */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    height: 55px;
    margin-bottom: 15px;
}

.login-header h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Utility helper classes for ultra-compact UI */
.extra-small {
    font-size: 0.75rem !important;
}

.btn-xs {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.725rem !important;
    border-radius: 4px !important;
}
