/* ============================================================
   GÜZELLIK MERKEZi - PREMIUM TASARIM SiSTEMi
   ============================================================ */

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

/* ============== CSS DEGiSKENLER ============== */
:root {
    /* Premium Renk Paleti */
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    --primary-glow: 0 0 20px rgba(124,58,237,0.3);

    --secondary: #06b6d4;
    --secondary-light: #67e8f9;
    --secondary-dark: #0891b2;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Nötr Renkler */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradyanlar */
    --gradient-violet: linear-gradient(135deg, #7c3aed, #a855f7);
    --gradient-pink: linear-gradient(135deg, #ec4899, #f43f5e);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-green: linear-gradient(135deg, #10b981, #34d399);
    --gradient-orange: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-dark: linear-gradient(135deg, #1e293b, #334155);
    --gradient-rainbow: linear-gradient(135deg, #7c3aed, #db2777, #f59e0b);
    --gradient-sidebar: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    --gradient-header: linear-gradient(90deg, rgba(124,58,237,0.08) 0%, rgba(219,39,119,0.08) 100%);
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #ede9fe 100%);

    /* Gölge Efektleri */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(124,58,237,0.15);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-float: 0 20px 60px rgba(0,0,0,0.15);

    /* Tipografi */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Sidebar */
    --sidebar-width: 270px;
    --sidebar-collapsed: 72px;
}

/* ============== RESET & BASE ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--gradient-bg);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--gray-900); line-height: 1.3; }
h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============== ANIMASYONLAR ============== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade { animation: fadeIn 0.5s ease-out; }
.animate-scale { animation: fadeInScale 0.4s ease-out; }
.animate-slide-left { animation: slideInLeft 0.5s ease-out; }
.animate-slide-right { animation: slideInRight 0.5s ease-out; }

/* ============== LEYOUTi ============== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ============== SiDEBAR ============== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-sidebar);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(124,58,237,0.4);
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.sidebar-subtitle {
    font-size: 0.7rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin: 20px 8px 8px;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255,255,255,0.65);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    opacity: 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
    transform: translateX(4px);
}
.nav-link:hover::before { opacity: 1; }

.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-weight: 600;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(239,68,68,0.9);
    color: white;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.06); }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-info .name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-info .role {
    font-size: 0.68rem;
    opacity: 0.5;
}

/* ============== ANA iCERiK ============== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}
.menu-toggle:hover { background: var(--gray-100); color: var(--gray-900); }

.search-box {
    position: relative;
}
.search-box input {
    width: 320px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0 16px 0 42px;
    font-size: 0.85rem;
    font-family: var(--font);
    background: var(--gray-50);
    transition: var(--transition);
    outline: none;
}
.search-box input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
    background: white;
    width: 380px;
}
.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
}
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 420px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--gray-200);
    z-index: 9999;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    animation: slideDown 0.2s ease;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
    cursor: pointer;
}
.search-result-item:hover { background: var(--primary-50); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.search-result-item .info { flex: 1; }
.search-result-item .title { font-weight: 600; font-size: 0.88rem; }
.search-result-item .subtitle { font-size: 0.75rem; color: var(--gray-500); }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}
.top-bar-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateY(-1px);
}
.top-bar-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.content-area {
    padding: 28px 32px 40px;
    animation: fadeIn 0.4s ease-out;
}

/* ============== PAGE HEADER ============== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header small { font-size: 0.8rem; -webkit-text-fill-color: var(--gray-400); }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 4px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray-300); }

/* ============== BUTONLAR ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(124,58,237,0.4); transform: translateY(-2px); color: white; }

.btn-success {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.btn-success:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.4); transform: translateY(-2px); color: white; }

.btn-danger {
    background: var(--gradient-pink);
    color: white;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-danger:hover { box-shadow: 0 6px 20px rgba(239,68,68,0.4); transform: translateY(-2px); color: white; }

.btn-warning {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.btn-warning:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.4); transform: translateY(-2px); color: white; }

.btn-info {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.btn-info:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.4); transform: translateY(-2px); color: white; }

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-secondary:hover { background: var(--gray-200); color: var(--gray-900); transform: translateY(-1px); }

.btn-dark {
    background: var(--gradient-dark);
    color: white;
}

.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 8px; width: 34px; height: 34px; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============== KARTLAR ============== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out backwards;
}
.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, rgba(124,58,237,0.02), rgba(219,39,119,0.02));
}
.card-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.card-header h3 i { color: var(--primary); font-size: 0.95rem; }

.card-body { padding: 24px; }
.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ============== iSTATiSTiK KARTLARI ============== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out backwards;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.06;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.stat-card:hover::before { opacity: 0.1; }

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: white;
    position: relative;
}
.stat-icon.primary { background: var(--primary-gradient); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.stat-icon.success { background: var(--gradient-green); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.stat-icon.danger { background: var(--gradient-pink); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.stat-icon.warning { background: var(--gradient-orange); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.stat-icon.info { background: var(--gradient-blue); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }

.stat-card::before {
    background: var(--primary);
}
.stat-card:nth-child(2)::before { background: var(--success); }
.stat-card:nth-child(3)::before { background: var(--danger); }
.stat-card:nth-child(4)::before { background: var(--warning); }
.stat-card:nth-child(5)::before { background: var(--info); }
.stat-card:nth-child(6)::before { background: var(--success); }

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
    font-weight: 500;
}

/* ============== GRID LAYOUT ============== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }

/* ============== TABLOLAR ============== */
.table-wrapper { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}
.data-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.data-table tbody tr {
    transition: var(--transition-fast);
}
.data-table tbody tr:hover {
    background: linear-gradient(90deg, var(--primary-50), rgba(219,39,119,0.03));
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.data-table td a { font-weight: 600; }

/* ============== BADGE'LER ============== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.badge-primary { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(124,58,237,0.15)); color: var(--primary); }
.badge-success { background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.15)); color: #059669; }
.badge-danger { background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.15)); color: #dc2626; }
.badge-warning { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.15)); color: #d97706; }
.badge-info { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(59,130,246,0.15)); color: #2563eb; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-dark { background: linear-gradient(135deg, rgba(15,23,42,0.08), rgba(15,23,42,0.12)); color: var(--gray-700); }

/* ============== FORM ELEMANTLARi ============== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.required { color: var(--danger); }

.form-control {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 0.88rem;
    font-family: var(--font);
    color: var(--gray-800);
    background: white;
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.form-control::placeholder { color: var(--gray-400); }

textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }
.form-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============== FiLTRE CUBUGU ============== */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

/* ============== MODAL ============== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-float);
    animation: fadeInScale 0.3s ease-out;
}
.modal.modal-lg { max-width: 800px; }
.modal.modal-sm { max-width: 420px; }
.modal.modal-xl { max-width: 1000px; }

.modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, rgba(124,58,237,0.03), rgba(219,39,119,0.03));
}
.modal-header h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.modal-header h3 i { color: var(--primary); }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ============== TOAST BiLDiRiM ============== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    min-width: 280px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    animation: toastTimer 3s linear forwards;
}
@keyframes toastTimer { from { width: 100%; } to { width: 0%; } }
.toast.success { background: var(--gradient-green); }
.toast.error { background: var(--gradient-pink); }
.toast.warning { background: var(--gradient-orange); }
.toast.info { background: var(--gradient-blue); }

/* ============== TABS ============== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: white;
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    overflow-x: auto;
}
.tab-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font);
}
.tab-btn:hover { color: var(--primary); background: var(--primary-50); }
.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(124,58,237,0.3);
}
.tab-content { display: none; animation: fadeIn 0.3s ease-out; }
.tab-content.active { display: block; }

/* ============== RENK & YARDIMCI ============== */
.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8);
}
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.text-muted { color: var(--gray-500); }

.empty-state {
    text-align: center;
    padding: 50px 24px;
    color: var(--gray-400);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--gray-300); }
.empty-state p { font-size: 0.9rem; color: var(--gray-500); }

.timeline-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.timeline-item .time { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 4px; }

.actions { display: flex; gap: 4px; }

/* ============== SAYFALANDiRMA ============== */
.pagination-wrapper { display: flex; justify-content: center; }
.pagination { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.pagination li a, .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    background: white;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.pagination li a:hover {
    background: var(--primary-50);
    border-color: var(--primary-light);
    color: var(--primary);
}
.pagination li.active a {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

/* ============== ONAY MODALI ============== */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.confirm-overlay.active { display: flex; }
.confirm-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow-float);
    animation: fadeInScale 0.3s ease-out;
}
.confirm-box h3 { margin-bottom: 10px; }
.confirm-box p { color: var(--gray-500); margin-bottom: 24px; font-size: 0.9rem; }

/* FLASH MESAJ */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    animation: slideDown 0.4s ease-out;
}
.flash-message.success {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.12));
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.2);
}
.flash-message.error {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.12));
    color: #991b1b;
    border: 1px solid rgba(239,68,68,0.2);
}

/* ============== GiRiS SAYFASI ============== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #7c3aed 60%, #db2777 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    top: -100px; right: -100px;
}
.login-page::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -80px; left: -80px;
}

.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 44px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: fadeInScale 0.6s ease-out;
}
.login-card .login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(124,58,237,0.4);
}
.login-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.login-card .form-group label i { margin-right: 6px; color: var(--primary); }
.login-card .btn-primary {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ============== TAKViM ÖZEL STiLLERi ============== */
.calendar-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}
.fc {
    font-family: var(--font) !important;
}
.fc .fc-toolbar-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fc .fc-button {
    font-size: 0.82rem !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-family: var(--font) !important;
    border: none !important;
    transition: var(--transition) !important;
}
.fc .fc-button-primary {
    background: var(--gray-100) !important;
    color: var(--gray-700) !important;
}
.fc .fc-button-primary:hover {
    background: var(--primary-50) !important;
    color: var(--primary) !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(124,58,237,0.3) !important;
}
.fc .fc-today-button {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(124,58,237,0.2) !important;
}
.fc .fc-event {
    border-radius: 8px !important;
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
.fc .fc-event:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
    z-index: 10 !important;
}
.fc .fc-timegrid-slot { height: 44px !important; }
.fc .fc-col-header-cell {
    padding: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--gray-50), white) !important;
    color: var(--gray-700) !important;
}
.fc .fc-daygrid-day-number {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--gray-700) !important;
    padding: 8px 10px !important;
}
.fc td, .fc th { border-color: var(--gray-100) !important; }
.fc .fc-scrollgrid { border-color: var(--gray-200) !important; border-radius: var(--radius) !important; overflow: hidden !important; }
.fc .fc-timegrid-now-indicator-line {
    border-color: var(--danger) !important;
    border-width: 2px !important;
}
.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--danger) !important;
}
.fc .fc-day-today {
    background: rgba(124,58,237,0.03) !important;
}
.fc .fc-daygrid-day-top {
    padding: 4px;
}
.fc .fc-highlight {
    background: rgba(124,58,237,0.08) !important;
}
.fc .fc-toolbar {
    margin-bottom: 20px !important;
}
.fc .fc-toolbar.fc-header-toolbar {
    gap: 12px;
}

.calendar-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.calendar-filters select, .calendar-filters input {
    height: 40px;
    font-size: 0.85rem;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    padding: 0 14px;
    font-family: var(--font);
    transition: var(--transition);
    background: white;
}
.calendar-filters select:focus, .calendar-filters input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}

.staff-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.staff-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    font-weight: 500;
}
.staff-legend-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.staff-legend-item.inactive { opacity: 0.35; }

.event-tooltip {
    position: absolute;
    background: var(--gray-900);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    z-index: 99999;
    pointer-events: none;
    max-width: 300px;
    line-height: 1.5;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.15s ease;
}

/* ============== TOOLTIP ============== */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.15s ease;
    pointer-events: none;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 9999;
    }
    .sidebar.mobile-open { transform: translateX(0); box-shadow: 10px 0 40px rgba(0,0,0,0.3); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }
    .content-area { padding: 20px 16px; }
    .top-bar { padding: 0 16px; }
    .search-box input { width: 200px; }
    .search-box input:focus { width: 240px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.4rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .modal { max-height: 95vh; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; }
    .data-table { font-size: 0.8rem; }
    .data-table td, .data-table th { padding: 10px 12px; }
    .fc .fc-toolbar { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; }
}

/* Sidebar mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.sidebar-overlay.active { display: block; }

/* ============== TAKVİM ============== */
.calendar-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 24px;
}
.calendar-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.calendar-filters select {
    height: 40px;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 0 12px;
    font-family: var(--font);
    background: white;
    outline: none;
    transition: var(--transition);
}
.calendar-filters select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

.staff-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.staff-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    font-weight: 500;
}
.staff-legend-item:hover { background: var(--primary-50); border-color: var(--primary-light); }
.staff-legend-item.inactive { opacity: 0.35; }

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.color-swatch {
    width: 28px;
    height: 20px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.event-tooltip {
    position: fixed;
    background: var(--gray-900);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.78rem;
    z-index: 99999;
    pointer-events: none;
    max-width: 300px;
    line-height: 1.6;
    box-shadow: var(--shadow-float);
}

/* FullCalendar overrides */
.fc { font-family: var(--font) !important; }
.fc .fc-toolbar-title { font-size: 1.15rem !important; font-weight: 700 !important; }
.fc .fc-button { font-size: 0.82rem !important; padding: 6px 14px !important; border-radius: 8px !important; font-weight: 500 !important; font-family: var(--font) !important; }
.fc .fc-button-primary { background: var(--primary) !important; border-color: var(--primary) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { background: var(--primary-dark) !important; }
.fc .fc-event { border-radius: 8px !important; padding: 2px 4px !important; font-size: 0.78rem !important; border: none !important; cursor: pointer !important; }
.fc .fc-timegrid-slot { height: 40px !important; }
.fc .fc-col-header-cell { padding: 10px !important; font-size: 0.82rem !important; font-weight: 600 !important; }
.fc .fc-daygrid-day-number { font-size: 0.85rem !important; font-weight: 500 !important; }
.fc td, .fc th { border-color: var(--gray-200) !important; }
.fc .fc-scrollgrid { border-color: var(--gray-200) !important; }
.fc .fc-timegrid-now-indicator-line { border-color: var(--danger) !important; }

/* ============== FORM CARD LINK ============== */
.form-card-link { transition: var(--transition); }
.form-card-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

/* ============== YAZDIR ============== */
@media print {
    .sidebar, .top-bar, .btn, .filter-bar, .modal-overlay, .toast-container { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
    .stat-card { break-inside: avoid; }
    body { background: white !important; }
}

