/* Randevu Oluştur.net - Master Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Karanlık Tema (Görseldeki koyu lüks renk paleti) */
    --bg-main: #0c0e12;
    --bg-sidebar: #0f1218;
    --bg-card: #151821;
    --bg-card-hover: #1a1e2a;
    --bg-input: #12151c;
    --border-color: #212634;
    --border-subtle: #191e29;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.15);
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;

    --badge-bg: #1e2430;
    --badge-text: #cbd5e1;

    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
}

[data-theme="light"] {
    /* Aydınlık Tema (Kurumsal & Aydınlık modern palet) */
    --bg-main: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-green: #059669;
    --accent-green-glow: rgba(5, 150, 105, 0.15);
    --accent-blue: #2563eb;
    --accent-orange: #d97706;
    --accent-purple: #7c3aed;
    --accent-red: #dc2626;

    --badge-bg: #e2e8f0;
    --badge-text: #1e293b;

    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ==================== Ortak Butonlar & Form Bileşenleri ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-green);
    color: #ffffff;
}
.btn-primary:hover {
    background: #0ea371;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-green-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.badge-orange {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
}
.badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ==================== LANDING / PUBLIC HEADER & PAGES ==================== */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(12, 14, 18, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
[data-theme="light"] .landing-nav {
    background: rgba(255, 255, 255, 0.9);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.brand-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 16px var(--accent-green-glow);
}
.brand-logo span span {
    color: var(--accent-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Landing Hero Section */
.hero-section {
    padding: 80px 32px 60px;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    font-size: 12.5px;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title span {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}
.hero-stat-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-stat-item p {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* Interactive Phone SMS Simulator (Standart Flagship Akıllı Telefon Oranları) */
.phone-mockup {
    width: 100%;
    max-width: 340px;
    height: 660px;
    background: #090c10;
    border-radius: 50px;
    padding: 10px;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 25px 70px -15px rgba(0, 0, 0, 0.75),
        0 0 50px rgba(16, 185, 129, 0.12),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 0 0 6px #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* Fiziksel Yan Düğmeler */
.phone-btn-power {
    position: absolute;
    right: -4px;
    top: 150px;
    width: 3.5px;
    height: 52px;
    background: #2d3748;
    border-radius: 0 4px 4px 0;
}
.phone-btn-vol-up {
    position: absolute;
    left: -4px;
    top: 120px;
    width: 3.5px;
    height: 44px;
    background: #2d3748;
    border-radius: 4px 0 0 4px;
}
.phone-btn-vol-down {
    position: absolute;
    left: -4px;
    top: 175px;
    width: 3.5px;
    height: 44px;
    background: #2d3748;
    border-radius: 4px 0 0 4px;
}

/* Telefon Ekranı */
.phone-screen {
    background: #0d1117;
    border-radius: 42px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 8px 14px 6px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .phone-screen {
    background: #f8fafc;
}

/* Üst Durum Çubuğu */
.phone-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 0 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 10;
}
.phone-time {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.phone-dynamic-island {
    width: 82px;
    height: 20px;
    background: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.island-camera {
    width: 8px;
    height: 8px;
    background: #111a24;
    border: 1px solid #1f2937;
    border-radius: 50%;
    display: inline-block;
}
.phone-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}
.phone-icon-signal {
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--text-primary);
}
.phone-icon-5g {
    font-weight: 800;
    font-size: 9px;
    color: var(--text-primary);
}
.phone-icon-battery {
    width: 19px;
    height: 10px;
    border: 1.5px solid var(--text-primary);
    border-radius: 3px;
    padding: 1px;
    position: relative;
    display: inline-flex;
}
.phone-icon-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 2px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 0 1px 1px 0;
}
.battery-level {
    width: 80%;
    height: 100%;
    background: var(--accent-green);
    border-radius: 1px;
}

/* SMS Başlık Alanı */
.sms-header-preview {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0 10px;
    margin-bottom: 10px;
    position: relative;
}
[data-theme="light"] .sms-header-preview {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
.sms-header-top {
    text-align: left;
    margin-bottom: 4px;
}
.sms-back-btn {
    font-size: 11.5px;
    color: var(--accent-green);
    cursor: pointer;
    font-weight: 500;
}
.sms-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.sms-sender-title {
    font-weight: 800;
    font-size: 13.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    letter-spacing: 0.3px;
}
.verified-icon {
    color: #3b82f6;
    display: inline-block;
}
.sms-sender-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tarih Damgası */
.sms-date-pill {
    text-align: center;
    font-size: 10.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    display: inline-block;
    margin: 0 auto 12px;
    padding: 3px 12px;
    border-radius: 12px;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .sms-date-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.05);
}

/* SMS Gövde Alanı */
.sms-body-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 8px;
}
.sms-bubble {
    background: #1e2638;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 18px 4px;
    padding: 13px 15px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #e2e8f0;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .sms-bubble {
    background: #ffffff;
    color: #1e293b;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.sms-time {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 8px;
}

/* Alt Bar: Gerçek Mesaj Yazma Girişi & Home Çizgisi */
.phone-bottom-bar {
    margin-top: auto;
    padding-top: 6px;
}
.sms-interactive-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4px 5px 4px 14px;
    transition: var(--transition);
}
[data-theme="light"] .sms-interactive-input-wrap {
    background: #ffffff;
    border-color: #cbd5e1;
}
.sms-interactive-input-wrap:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.sms-interactive-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}
.sms-send-circle-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.sms-send-circle-btn:hover {
    background: var(--accent-green-hover);
    transform: scale(1.05);
}
.phone-home-indicator {
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    margin: 8px auto 2px;
}
[data-theme="light"] .phone-home-indicator {
    background: rgba(0, 0, 0, 0.25);
}

/* Feature Sections */
.features-container {
    max-width: 1240px;
    margin: 60px auto;
    padding: 0 32px;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== DASHBOARD (EXACT SCREENSHOT LAYOUT) ==================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

/* Sidebar */
.dashboard-sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 18px 14px;
    user-select: none;
    z-index: 50;
    transition: var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.sidebar-brand-icon {
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.sidebar-search {
    position: relative;
    margin-bottom: 20px;
}
.sidebar-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 30px;
    font-size: 12.5px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}
.sidebar-search input:focus {
    border-color: var(--accent-green);
}
.sidebar-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
}
.sidebar-search-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    background: var(--border-color);
    color: var(--text-muted);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.sidebar-section-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 10px 10px 6px;
    margin-top: 6px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-item a, .sidebar-item button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
}
.sidebar-item a:hover, .sidebar-item button:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}
.sidebar-item.active a, .sidebar-item.active button {
    color: #ffffff;
    background: #1e2430;
    font-weight: 600;
}
[data-theme="light"] .sidebar-item.active a {
    color: var(--text-primary);
    background: #e2e8f0;
}
.sidebar-item .nav-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.sidebar-user-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #232936;
}
.sidebar-user-info {
    line-height: 1.25;
    overflow: hidden;
}
.sidebar-user-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.sidebar-user-email {
    font-size: 10.5px;
    color: var(--text-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    max-height: 100vh;
}

/* Dashboard Topbar */
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dashboard Content Container */
.dashboard-body {
    padding: 24px 28px 60px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Nav Subtabs (Overview, Sales, Order, Report - exact screenshot) */
.subtabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.subtabs-pills {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
}
.subtab-pill {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: var(--transition);
}
.subtab-pill:hover {
    color: var(--text-primary);
}
.subtab-pill.active {
    background: #242a38;
    color: #ffffff;
    font-weight: 600;
}
[data-theme="light"] .subtab-pill.active {
    background: #e2e8f0;
    color: #0f172a;
}
.subtabs-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Metrik Kartları (3'lü Kart Dizilimi - exact screenshot) */
.metrics-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}
.metric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.metric-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}
.metric-more-btn {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    background: none;
    border: none;
}
.metric-value-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.metric-value {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.metric-badge {
    font-size: 11.5px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

/* Mini Bar Chart Barları (Görseldeki mavi, turuncu ve yeşil dikey barlar) */
.mini-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 42px;
    width: 100%;
    margin-top: 6px;
}
.mini-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    min-height: 6px;
    transition: height 0.4s ease;
}
.mini-bar-blue {
    background: #3b82f6;
}
.mini-bar-orange {
    background: #f59e0b;
}
.mini-bar-green {
    background: #10b981;
}
.mini-bar-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* Orta Grafikler (Gelir Tahmini + Kaynak Donut Grafiği - exact screenshot) */
.charts-grid-middle {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 18px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}
.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.chart-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary);
}
.chart-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.chart-container-forecast {
    position: relative;
    height: 240px;
    width: 100%;
}
.chart-legend-forecast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--text-secondary);
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Donut Chart Widget (Hangi Hizmet Daha Fazla Satıldı) */
.donut-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px 0;
}
.donut-canvas-container {
    position: relative;
    width: 170px;
    height: 170px;
}
.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.donut-center-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.donut-center-label {
    font-size: 11px;
    color: var(--text-muted);
}
.donut-legend-list {
    width: 100%;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-secondary);
}
.donut-legend-name {
    display: flex;
    align-items: center;
    gap: 8px;
}
.donut-legend-val {
    font-weight: 600;
    color: var(--text-primary);
}

/* Personel Randevu Dağılım Kartı */
.staff-metrics-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: center;
}
.staff-metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.staff-item-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}
.staff-item-details {
    flex: 1;
}
.staff-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}
.staff-item-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}
.staff-item-badge {
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Veri Tablosu (Table data sales - exact screenshot) */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--card-shadow);
}
.table-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.table-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.table-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.table-search-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    outline: none;
    width: 200px;
    transition: var(--transition);
}
.table-search-input:focus {
    border-color: var(--accent-green);
    width: 240px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.custom-table th {
    padding: 12px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.custom-table td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: middle;
}
.custom-table tr:hover td {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.table-row-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.table-staff-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
}
.table-staff-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== PERSONEL INDEX (PERSONEL PANELI) ==================== */
.personel-header-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
}
.personel-profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}
.personel-large-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}
.personel-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Personel Takvimi / Saat Bazlı Slot Grid */
.calendar-view-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
}
.calendar-time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.time-slot-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.time-slot-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
}
.time-slot-card.booked {
    border-left: 4px solid var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}
.time-slot-card.empty {
    border-left: 4px solid var(--accent-green);
    border-style: dashed;
}
.time-slot-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}
.time-slot-status {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-muted);
}

/* Talepler (Gelen Randevu İstekleri) */
.demands-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.demand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    transition: var(--transition);
}
.demand-card:hover {
    border-color: var(--accent-green);
}
.demand-info-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.demand-info-col p {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ==================== MODAL PENCERELERİ (POPUP) ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-body {
    padding: 22px 24px;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-input);
}

.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-glow);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* SMS Log Listesi */
.sms-log-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.sms-log-content {
    flex: 1;
}
.sms-log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.sms-log-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}
.sms-log-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: rgba(0,0,0,0.15);
    padding: 8px 10px;
    border-radius: 6px;
}
.sms-log-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==================== FOOTER (KURUMSAL ALT BİLGİ) ==================== */
.landing-footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    padding-top: 60px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px 50px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-col-brand .footer-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 320px;
}
.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}
.footer-social-link:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
}
.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}
.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links-list a {
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-links-list a:hover {
    color: var(--accent-green);
    transform: translateX(3px);
    display: inline-block;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.footer-security-badge {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
}
.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .footer-bottom-bar {
    background: rgba(0, 0, 0, 0.02);
}
.footer-bottom-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-bottom-links a {
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* ==================== MOBİL BİLEŞENLER & ERGONOMİ ==================== */

/* Mobil Butonlar & Göster/Gizle Yardımcıları */
.mobile-menu-toggle {
    display: none;
}
.mobile-sidebar-toggle {
    display: none;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobil Menü Çekmecesi (Landing Drawer) */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-drawer.active {
    right: 0;
}
.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.mobile-drawer-backdrop.active {
    display: block;
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
}
.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

/* Personel Portalı Alt Gezinme Barı (App-like Bottom Navigation) */
.personel-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    backdrop-filter: blur(12px);
    padding: 6px 12px;
    justify-content: space-around;
    align-items: center;
}
.personel-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}
.personel-bottom-nav-item .bottom-icon {
    font-size: 18px;
}
.personel-bottom-nav-item:hover, .personel-bottom-nav-item.active {
    color: var(--accent-green);
}
[data-theme="light"] .personel-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
}

/* ==================== RESPONSIVE DÜZENLEMELER ==================== */

/* Tablet & Küçük Masaüstü (1024px ve altı) */
@media (max-width: 1024px) {
    .metrics-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .charts-grid-middle {
        grid-template-columns: 1fr;
    }
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 24px 40px;
    }
    .hero-desc {
        margin: 0 auto 28px;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .hero-badges {
        justify-content: center;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobil & Tablet Dikey (768px ve altı) */
@media (max-width: 768px) {
    /* Genel Ayarlar */
    body {
        font-size: 14px;
    }

    /* Landing Nav */
    .landing-nav {
        padding: 12px 18px;
    }
    .nav-links {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .desk-only-btn {
        display: none !important;
    }

    /* Hero */
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
    .phone-mockup {
        max-width: 320px;
        height: 600px;
        margin: 0 auto;
        border-radius: 44px;
        padding: 9px;
    }
    .phone-screen {
        border-radius: 36px;
    }

    /* Dashboard Layout & Offcanvas Sidebar */
    .dashboard-layout {
        flex-direction: column;
        position: relative;
    }
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -270px;
        bottom: 0;
        width: 270px;
        height: 100vh;
        z-index: 100;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
        transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }
    .dashboard-sidebar.mobile-open {
        left: 0;
    }
    .sidebar-backdrop {
        display: block;
    }
    .mobile-sidebar-toggle {
        display: inline-flex;
    }
    .desk-only-badge {
        display: none !important;
    }
    .hide-on-mobile-text {
        display: none;
    }

    /* Topbar */
    .dashboard-topbar {
        padding: 12px 16px;
    }
    .topbar-title {
        font-size: 17px;
    }

    /* Dashboard İçerik */
    .dashboard-body {
        padding: 14px 14px 80px;
        gap: 16px;
    }

    /* Subtabs Scrollable */
    .subtabs-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .subtabs-pills {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 4px;
        display: flex;
        -webkit-overflow-scrolling: touch;
    }
    .subtab-pill {
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 12px;
    }
    .subtabs-controls {
        display: flex;
        width: 100%;
        justify-content: flex-end;
    }

    /* Metrik Kartları */
    .metrics-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .metric-card {
        padding: 16px;
        min-height: auto;
    }
    .metric-value {
        font-size: 24px;
    }

    /* Tablo & Arama */
    .table-card {
        padding: 16px;
    }
    .table-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .table-actions-group {
        flex-wrap: wrap;
        width: 100%;
    }
    .table-search-input {
        width: 100% !important;
    }

    /* Form Modalleri */
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .modal-box {
        margin: 12px;
        max-width: 100%;
        border-radius: var(--radius-md);
    }
    .modal-header {
        padding: 16px;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-footer {
        padding: 12px 16px;
    }

    /* Personel Portalı */
    .personel-header-banner {
        padding: 18px 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .personel-profile-summary {
        flex-direction: row;
    }
    .personel-bottom-nav {
        display: flex;
    }
    .desk-only-text {
        display: none !important;
    }
    body:has(.personel-bottom-nav) {
        padding-bottom: 70px;
    }

    /* Footer Mobil Düzen */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px 40px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Küçük Telefonlar (480px ve altı) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 27px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .hero-badges {
        flex-direction: column;
        gap: 14px;
        padding-top: 18px;
    }
    .calendar-time-slot-grid {
        grid-template-columns: 1fr !important;
    }
    .personel-stats-row {
        grid-template-columns: 1fr !important;
    }
    .demand-card {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    .demand-card > div:last-child {
        width: 100%;
        margin-top: 10px;
    }
    .demand-card > div:last-child .btn {
        flex: 1;
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: 6px;
    }
    .footer-bottom-links span {
        display: none;
    }
}

