/* Modern Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --accent-color: #06b6d4;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 23, 42, 0.6);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background Animations */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-dark), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6366f1, transparent);
    top: 40%;
    left: 40%;
    opacity: 0.3;
    animation-delay: -5s;
    animation-duration: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Login Card Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Brand Section */
.brand-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.brand-section h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: white;
}

.brand-section .light-text {
    font-weight: 300;
    opacity: 0.9;
}

.subtitle {
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 16px 45px;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: transparent;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 18px;
    transition: color 0.3s;
}

.input-group input:focus~.input-icon {
    color: var(--primary-color);
}

/* Floating Label */
.input-label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.input-group input:focus~.input-label,
.input-group input:not(:placeholder-shown)~.input-label {
    top: 0;
    left: 15px;
    font-size: 12px;
    color: var(--primary-color);
    background-color: var(--bg-dark);
    border-radius: 4px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--text-white);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-gray);
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #4f8df9, #316cf4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer-text {
    margin-top: 30px;
    color: var(--text-gray);
    font-size: 12px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
}

/* DASHBOARD STYLES */
.dashboard-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 25px;
    transition: width 0.3s;
    z-index: 20;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 5px;
}

.sidebar-header .logo-icon {
    font-size: 24px;
    margin-bottom: 0;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 15px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item a:hover,
.nav-item.active a {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.nav-item a i {
    width: 20px;
    text-align: center;
}

.logout-container {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 40%);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.page-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.page-title p {
    color: var(--text-gray);
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-info span {
    font-size: 14px;
    color: white;
    font-weight: 500;
    display: block;
}

.user-info small {
    font-size: 11px;
    color: var(--text-gray);
}

/* Stats Grid */
/* Stats Grid - 5'li Yan Yana Düzen */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 eşit sütun */
    gap: 15px; /* Kartlar arası boşluğu daralttık */
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 15px; /* İç boşluğu azalttık (eskisi 25px idi) */
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px; /* İkon ve yazı arası boşluk (eskisi 20px idi) */
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 90px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

/* İkon boyutlarını küçülttük */
.stat-icon, .card-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
}

/* Rakam ve yazı fontlarını tek satıra sığacak şekilde optimize ettik */
.stat-details h3, .card-info p {
    font-size: 20px !important; /* Büyük rakam boyutu */
    font-weight: 700;
    color: white;
    margin: 0;
}

.stat-details p, .card-info h3 {
    font-size: 11px !important; /* Alt açıklama boyutu */
    color: var(--text-gray);
    margin: 0;
    white-space: nowrap; /* Yazının taşmasını/alt satıra inmesini engeller */
}

/* Mobil görünümde 5 kart sığmayacağı için kaydırma çubuğu ekler */
@media (max-width: 1024px) {
    .stats-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .stat-card {
        min-width: 200px;
        flex: 0 0 auto;
    }
}
/* Table */
.recent-activity {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.view-all-btn {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.styled-table th {
    text-align: left;
    padding: 15px 20px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
}

.styled-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 14px;
}

.styled-table tr:last-child td {
    border-bottom: none;
}

.styled-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* PERSONEL PAGE STYLES */
.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    padding: 12px 15px 12px 40px;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.add-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.action-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
    color: white;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.9);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Editör modunda gizlenecek menüler için yardımcı sınıf */
body.editor-mode .nav-item:not(.editor-allowed) {
    display: none !important;
}

/* --- MOBİL UYUMLULUK KATMANI (Masaüstünü Etkilemez) --- */
@media (max-width: 768px) {
    /* 1. Body kilidini mobilde açıyoruz (En Kritik Yer) */
    body {
        overflow: auto !important; /* Masaüstündeki 'hidden' kuralını iptal eder */
        display: block !important; /* Center hizalamayı mobilde serbest bırakır */
    }

    /* 2. Dashboard'un esnekliğini mobilde açıyoruz */
    .dashboard-container {
        display: block !important;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    /* 3. Yan Menü (Sidebar) - Üst Bar Modu */
    .sidebar {
        position: sticky !important; /* Sayfayı kaydırsan da en üstte kalır */
        top: 0;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 5px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: #0f172a !important; /* Arka planı sabitleyelim */
        z-index: 1001;
        border-bottom: 1px solid var(--glass-border);
    }

    /* 4. MENÜ KAYDIRMA (Yana Doğru) */
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important; /* YANA KAYDIRMAYI AÇAR */
        overflow-y: hidden !important;
        padding: 10px 15px !important;
        gap: 25px !important; /* Menüler arası boşluğu artırdık */
        -webkit-overflow-scrolling: touch; /* iOS için akıcı kaydırma */
    }

    /* Menülerin genişliğini sabitle ki birbirine girmesinler */
    .nav-item {
        flex: 0 0 auto !important;
    }

    .nav-item a {
        flex-direction: column;
        font-size: 16px !important; /* İstediğin gibi büyük boyut */
        padding: 5px !important;
        color: white !important;
    }

    .nav-item i {
        font-size: 26px !important; /* İkonlar daha büyük */
        margin-bottom: 4px;
    }

    /* 5. ANA İÇERİK (Aşağı Doğru Kaydırma) */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
        overflow-y: visible !important; /* AŞAĞI KAYDIRMAYI AÇAR */
    }

    /* Rapor Tablosu Mobilde Yana Kaymalı */
    .report-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobilde gereksizleri gizle */
    .sidebar h2, .sidebar-header, .logout-container, .background-animation {
        display: none !important;
    }
}

/* Takvim Karanlık Mod Uyumu */
#calendar {
    font-family: 'Outfit', sans-serif;
    border: none !important;
}

.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.fc-daygrid-day-number, .fc-col-header-cell-cushion {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13px;
}

.fc-toolbar-title {
    color: white !important;
    font-size: 18px !important;
}

.fc-button-primary {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    text-transform: capitalize !important;
}

.fc-button-primary:hover {
    background-color: #3b82f6 !important;
}

.fc-event {
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
}
/* Takvim Karelerini Küçültme */
.fc .fc-daygrid-day-frame {
    min-height: 60px !important; /* Karelerin minimum yüksekliğini düşürdük */
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 1.5em !important;
}

.fc-daygrid-event {
    font-size: 0.75rem !important; /* Yazıları küçülttük */
    padding: 1px 4px !important;
}

.fc .fc-toolbar {
    margin-bottom: 0.5em !important; /* Başlık boşluğunu daralttık */
}

/* Takvim Çerçeve ve Çizgi Tamiri */
.fc {
    box-sizing: border-box !important;
}

.fc-theme-standard .fc-scrollgrid {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Yarım çizgi sorununu çözen kritik ayar */
.fc-daygrid-day-frame {
    border: 0.5px solid rgba(255, 255, 255, 0.05) !important;
}

/* Butonları yan yana düzgün diz */
.fc-header-toolbar {
    margin-bottom: 15px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fc-button {
    font-size: 12px !important;
    padding: 6px 10px !important;
}

/* Hafta görünümündeki saat kolonunu renklendir */
.fc .fc-timegrid-slot-label-cushion {
    color: #94a3b8 !important;
}

/* --- KURUMSAL YILLIK PLAN (LIST) GÖRÜNÜMÜ --- */

/* Liste satırlarının genel arka planını koyulaştır */
.fc-list-event {
    background-color: rgba(30, 41, 59, 0.5) !important; /* Lacivert/Siyah transparan zemin */
    cursor: pointer;
}

/* Etkinlik isimlerinin (yazıların) rengini beyaz yap */
.fc-list-event-title a {
    color: #f8fafc !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* Üzerine gelince (Hover) satırı aydınlat */
.fc-list-event:hover td {
    background-color: rgba(59, 130, 246, 0.15) !important; /* Hafif mavi vurgu */
}

/* Gün başlıklarını (Tarih şeridi) kurumsallaştır */
.fc-list-day-cushion {
    background-color: #334155 !important; /* Daha belirgin gri/mavi şerit */
}

.fc-list-day-text, .fc-list-day-side-text {
    color: #60a5fa !important; /* Tarihler açık mavi */
    font-weight: bold !important;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Liste kenarlıklarını incelt ve yumuşat */
.fc-list {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.fc-list-event td {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Saat kısmını belirginleştir */
.fc-list-event-time {
    color: #94a3b8 !important;
    font-weight: 400;
}

/* Durum çubuğunu (sol taraftaki renkli nokta/çizgi) mermi gibi yap */
.fc-list-event-dot {
    border-width: 5px !important;
}

/* --- CRM PROFESYONEL EKLEMELER --- */

/* Yan Panel (Side Drawer) */
.side-drawer {
    position: fixed;
    top: 0;
    right: -550px; /* Başlangıçta gizli */
    width: 500px;
    height: 100vh;
    background: #0f172a;
    box-shadow: -15px 0 40px rgba(0,0,0,0.6);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    border-left: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
}

.side-drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 1050;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modern Tablo İyileştirmeleri */
.customer-table-row {
    transition: all 0.2s ease;
}

.customer-table-row:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}

/* Durum Rozetleri */
.status-pill {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-pill.active { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-pill.potential { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* Müşteri Detay Dashboard Kartları */
.mini-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.mini-stat-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.mini-stat-card span {
    display: block;
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.mini-stat-card b {
    font-size: 18px;
    color: white;
}



/* Buton ve İkon Etkileşimleri */
.version-actions i, .action-btn, .add-btn, .login-btn, .btn-cancel {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Hover Etkileri */
.version-actions i:hover {
    transform: scale(1.4) translateY(-2px);
    filter: brightness(1.4);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.add-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

/* Tıklama Hisseti */
.add-btn:active, .login-btn:active, .version-actions i:active {
    transform: scale(0.92);
}

/* Tablo Satırı Hover */
.customer-table-row:hover {
    background: rgba(59, 130, 246, 0.08) !important;
}

/* Toast Bildirim Tasarımı */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.9);
    border-left: 5px solid #3b82f6;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 99999;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Müşteri Tablosu İşlem Butonları */
.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Düzenle Butonu (Mavi) */
.action-btn.edit {
    color: #3b82f6 !important;
}
.action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Sil Butonu (Kırmızı) */
.action-btn.delete {
    color: #ef4444 !important;
}
.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* İkonların silik durmaması için opaklığı artırıyoruz */
.action-btn i {
    font-size: 14px;
    opacity: 0.9;
}

/* AI Orb ve Puls Etkisi */
.ai-orb-container { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }

.ai-status-orb {
    width: 50px; height: 50px; background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; z-index: 2; box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.orb-pulse {
    position: absolute; width: 100%; height: 100%;
    border: 2px solid #8b5cf6; border-radius: 50%;
    animation: orbRipple 2s infinite ease-out; opacity: 0; z-index: 1;
}

@keyframes orbRipple {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ai-alert-card {
    background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 12px 15px; border-radius: 10px; margin-top: 8px; border-left: 4px solid #f59e0b;
}

/* Teklif Tablosu Konteynırı */
#proposalItemsContainer {
    background: #f8fafc; /* Hafif gri-mavi arka plan */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Tablo Başlıkları - A Plus Kurumsal Mavisi */
#proposalTable thead th {
    background-color: #1d5ba1 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 15px;
    border: none;
}

/* Satırların şıklığı */
#proposalTable tbody tr {
    transition: all 0.2s;
    background-color: white;
}

#proposalTable tbody tr:hover {
    background-color: #f1f5f9; /* Üzerine gelince hafif renk değişimi */
}

#proposalTable td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}