/* --- WEBLINE SOFT - GLOBAL STYLE (V7.2 Modern Sidebar Toggle) --- */

/* 1. DEĞİŞKENLER VE RENK PALETİ */
:root {
    --bg-body: #f8f9fa;
    --bg-sidebar: #111827;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    /* LOGO RENKLERİ */
    --color-primary: #533783;           /* Koyu Mor */
    --color-primary-hover: #402967;     /* Daha Koyu Mor */
    --color-info: #36B1DB;              /* Aqua Mavi */
    
    /* Fonksiyonel Renkler (Okunabilirlik İçin Korundu) */
    --color-success: #10b981;           
    --color-danger: #ef4444;            
    --color-warning: #f59e0b;           
    --color-purple: #8b5cf6;            
    --color-secondary: #6c757d;         
    
    --border-color: #e5e7eb;
    --radius: 10px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 2px, 4px, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease-in-out;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-sidebar: #1e293b;
    --bg-header: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f3f4f6;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* 2. TEMEL AYARLAR */
body, html { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-main); min-height: 100vh; font-size: 14px; }
* { box-sizing: border-box; outline: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* 3. LAYOUT */
.wrapper { display: flex; width: 100%; min-height: 100vh; }
.main-content { 
    flex-grow: 1; 
    margin-left: 260px; 
    display: flex; 
    flex-direction: column; 
    width: calc(100% - 260px); 
    transition: margin-left 0.3s, width 0.3s; 
}
/* Masaüstü Sidebar Kapalıyken Main Content genişlet */
.main-content.collapsed {
    margin-left: 0;
    width: 100%;
}
.content-area { 
    padding: 30px; 
    width: 100%; 
    max-width: 1600px; 
    margin: 0 auto;
    flex-grow: 1; 
}

/* 4. SIDEBAR */
.sidebar { 
    width: 260px; 
    background-color: var(--bg-sidebar); 
    position: fixed; 
    height: 100vh; 
    z-index: 1000; 
    transition: transform 0.3s; 
    border-right: 1px solid rgba(255,255,255,0.05); 
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex; 
    flex-direction: column;
}
/* Masaüstü Kapalı Durum (Sol tarafa kaydır) */
.sidebar.collapsed {
    transform: translateX(-260px);
}
.sidebar::-webkit-scrollbar {
    display: none;
}
/* Logo ve Toggle Butonunun Çevresi */
.sidebar-header-wrapper {
    background: rgba(0,0,0,0.2); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative; 
    padding: 10px 0 0 0; /* LOGONUN ÜST BOŞLUĞU */
}
/* Logo Alanı */
.sidebar-header { 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 15px; 
    transition: var(--transition);
}
.sidebar-logo-img { 
    max-width: 160px; 
    height: auto; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); 
    display: block; 
    margin: 0 auto; 
}
/* Toggle Butonu (Masaüstü - Yan ok) */
.sidebar-toggle-btn {
    position: absolute;
    right: -15px; 
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    color: white;
    border: 3px solid var(--bg-body); 
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, background 0.2s, border-color 0.3s;
    z-index: 1001; 
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Kapalıyken butonu döndür */
.sidebar.collapsed .sidebar-toggle-btn {
    transform: translateY(-50%) rotate(180deg);
}
/* Mouse üzerine gelince arka plan rengini güncelle */
.sidebar-toggle-btn:hover {
    background: var(--color-primary-hover);
}


/* Navigasyon Başlığı Stili */
.sidebar-nav { flex-grow: 1; padding: 20px 0; } 
.sidebar-nav li { margin-bottom: 5px; }
.sidebar-nav-title {
    margin-top: 15px; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    padding: 10px 25px 5px 25px; 
    color: #64748b; 
    font-weight: 700;
}

.sidebar-nav li a { display: flex; align-items: center; color: #9ca3af; padding: 12px 25px; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; }
.sidebar-nav li a:hover, .sidebar-nav li a.active { background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--color-primary); }
.sidebar-nav li a i { width: 24px; font-size: 1.1rem; margin-right: 10px; text-align: center; }

/* LİSANS STATUS KUTUSU */
.sidebar-status-box {
    padding: 10px 25px;
    margin: 5px 15px 15px 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-success);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}
.sidebar-status-box i {
    font-size: 1.1rem;
}

.sidebar-version-box {
    padding: 15px 25px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-top: auto;
}

/* 5. TOPBAR */
.topbar { 
    height: 70px; 
    background: var(--bg-header); 
    padding: 0 30px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 900; 
    box-shadow: var(--shadow-sm); 
}
/* Mobil Hamburger Butonu */
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }
.page-breadcrumb { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.header-tools { display: flex; align-items: center; gap: 15px; }
.user-avatar { width:35px; height:35px; border-radius:50%; background:var(--color-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:bold; font-size:0.9rem; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-profile-dropdown { display:flex; align-items:center; gap:8px; cursor:pointer; }
.user-info { display:flex; flex-direction:column; line-height:1.2; }
.user-name { font-weight:600; font-size:0.9rem; }
.user-role { font-size:0.75rem; color:var(--text-muted); }
.header-tools .icon-btn { color: #ef4444; border: 1px solid rgba(239,68,68,0.1); background: rgba(239,68,68,0.05); width:35px; height:35px; display:flex; align-items:center; justify-content:center; border-radius:8px; }

.currency-box { display: flex; gap: 15px; font-size: 0.85rem; font-weight: 600; background: rgba(0,0,0,0.04); padding: 6px 12px; border-radius: 20px; color: #64748b; }

/* 6. SAYFA YAPISI */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin: 0; display: flex; align-items: center; gap: 10px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 7. DASHBOARD & KARTLAR */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-bottom: 30px; }
.dash-card { background: var(--bg-card); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); border-left: 5px solid transparent; display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.dash-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dash-info { z-index: 2; }
.dash-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.dash-value { font-size: 2rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.dash-icon { width: 55px; height: 55px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; z-index: 2; opacity: 0.8; }

.border-blue { border-left-color: var(--color-primary) !important; }
.border-green { border-left-color: var(--color-success) !important; }
.border-warning { border-left-color: var(--color-warning) !important; }
.border-purple { border-left-color: var(--color-purple) !important; }
.border-secondary { border-left-color: var(--color-secondary) !important; }
.border-danger { border-left-color: var(--color-danger) !important; }

.bg-icon-blue { background: #e0f2fe; color: var(--color-primary); }
.bg-icon-green { background: #dcfce7; color: var(--color-success); }
.bg-icon-warning { background: #fef3c7; color: var(--color-warning); }
.bg-icon-purple { background: #f3e8ff; color: var(--color-purple); }
.bg-icon-secondary { background: #f3f4f6; color: var(--color-secondary); }
.bg-icon-danger { background: #fee2e2; color: var(--color-danger); }

/* Karşılama Alanı */
.welcome-pro { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%); color: white; padding: 30px 40px; border-radius: var(--radius); margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 15px 30px rgba(54, 177, 219, 0.25); position: relative; overflow: hidden; }
.welcome-pro::after { content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.1); border-radius: 50%; pointer-events: none; }
.welcome-text h2 { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; } 
.welcome-text p { margin: 8px 0 0; font-size: 1.05rem; opacity: 0.9; }
.welcome-clock { text-align: right; z-index: 1; } 
.live-time { font-size: 2.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; } 
.live-date { font-size: 0.95rem; font-weight: 500; opacity: 0.9; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }


.quick-actions-container { background: var(--bg-card); padding: 15px 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid var(--border-color); }
.quick-label { font-weight: 600; color: var(--text-muted); margin-right: 10px; font-size: 0.9rem; }

/* 8. TABLO VE FORM */
.card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 25px; overflow: hidden; }
.card-header { padding: 15px 25px; background: rgba(0,0,0,0.02); border-bottom: 1px solid var(--border-color); font-weight: 700; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 25px; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { background-color: rgba(0,0,0,0.02); font-weight: 600; color: var(--text-muted); text-transform: uppercase; font-size: 0.75rem; padding: 15px 20px; border-bottom: 1px solid var(--border-color); text-align: left; }
.table td { padding: 15px 20px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.table tbody tr:hover { background-color: rgba(0,0,0,0.01); }

.advanced-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.advanced-table thead th { background: transparent; border: none; }
.advanced-table tbody tr { background: var(--bg-card); box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: transform 0.2s; }
.advanced-table tbody tr:hover { transform: scale(1.002); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.advanced-table td { border: 1px solid var(--border-color); border-width: 1px 0; }
.advanced-table td:first-child { border-left: 1px solid var(--border-color); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.advanced-table td:last-child { border-right: 1px solid var(--border-color); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* 9. MODAL VE FİLTRE PANELİ */
.filter-panel { background: var(--bg-card); border-radius: var(--radius); padding: 20px; margin-bottom: 25px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: none; }
.filter-panel.active { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { transform: translateY(0); } }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-content { background: var(--bg-card); width: 90%; max-width: 500px; border-radius: 12px; padding: 0; box-shadow: 0 20px 40px rgba(0,0,0,0.2); animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.02); border-radius: 12px 12px 0 0; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--border-color); text-align: right; border-radius: 0 0 12px 12px; }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 10. DİĞER BİLEŞENLER */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: var(--transition); border: 1px solid transparent; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-primary { background: var(--color-primary); color: #fff; } .btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: #fff; color: var(--text-main); border-color: var(--border-color); } .btn-secondary:hover { background: #f3f4f6; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-warning { background: var(--color-warning); color: #fff; }
.btn-info { background: var(--color-info); color: #fff; }

.form-control { width: 100%; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); font-size: 0.95rem; transition: var(--transition); }
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(83, 55, 131, 0.2); outline: none; }

.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: var(--radius); }
.alert-success { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.alert-error { background-color: #f8d7da; color: #842029; border-color: #f5c6cb; }
.alert-actions-group { margin-top: 10px; display: flex; gap: 10px; }

.horizontal-feed-container { background: var(--bg-card); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 25px; border: 1px solid var(--border-color); }
.horizontal-feed { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
.h-activity-card { flex: 0 0 280px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; transition: var(--transition); }
.h-activity-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.h-act-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.8rem; color: var(--text-muted); }
.h-act-device { font-weight: 700; color: var(--text-main); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-act-desc { font-size: 0.85rem; color: var(--text-muted); background: rgba(0,0,0,0.02); padding: 10px; border-radius: 6px; border: 1px solid var(--border-color); margin-bottom: 10px; height: 60px; overflow: hidden; line-height: 1.4; }
.h-act-user { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 5px; }

.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 5px; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f3f4f6; color: #4b5563; }
.badge-info { background: #e0f2fe; color: var(--color-info); }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background-color: #f0f2f5; }
.login-container { background-color: #ffffff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.login-container h1 { font-size: 1.5rem; font-weight: 600; text-align: center; margin-bottom: 1.5rem; color: #333; }
.login-container label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #555; }
.login-container .form-group { margin-bottom: 1rem; }
.login-btn { width: 100%; padding: 0.85rem; background-color: var(--color-primary); color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color 0.2s; }
.login-btn:hover { background-color: var(--color-primary-hover); }

@media (max-width: 768px) {
    /* Mobil Sidebar ve Main Content */
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.active { transform: translateX(0); } /* Mobil Açık Durum */
    .main-content { margin-left: 0; width: 100%; }
    .main-content.collapsed { margin-left: 0; width: 100%; }

    /* Menü Butonları */
    .menu-toggle { display: block; }
    .sidebar-toggle-btn { display: none !important; } /* Masaüstü toggle'ı mobil'de gizle */

    /* Diğer Mobil Ayarlar */
    .page-breadcrumb, .user-info, .hidden-mobile { display: none !important; }
    .content-area { padding: 15px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    
    /* Mobil Karşılama Kartı Optimizasyonu */
    .welcome-pro { 
        padding: 20px; 
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .welcome-text h2 { 
        font-size: 1.5rem; 
        line-height: 1.2;
    } 
    .welcome-text p { 
        font-size: 0.9rem; 
        margin-top: 5px;
    }
    .welcome-clock { 
        align-self: flex-end; 
        text-align: right; 
        margin-top: 10px;
    } 
    .live-time { 
        font-size: 1.8rem; 
    }
    .live-date { 
        font-size: 0.75rem; 
    }

    /* Tablo Responsive Ayarları */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 10px; }
    .table td { text-align: right; padding: 10px; padding-left: 40%; position: relative; border: none; border-bottom: 1px solid var(--border-color); }
    .table td:last-child { border-bottom: none; }
    .table td::before { content: attr(data-label); position: absolute; left: 10px; top: 10px; font-weight: 600; color: var(--text-muted); font-size: 0.85rem; }
}
/* Desktop Toggle Fixes */
.desktop-only { display: block; }


/* 13. ÖZEL SAYFA STİLLERİ */

/* Form Grupları */
.form-section-title { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid var(--border-color); padding-bottom: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.form-grid-two-col {
    grid-template-columns: 1fr 1fr !important;
}
.input-disabled {
    background: #f8f9fa;
}

/* Servis Yeni Sayfası İçin Eklenen Layout ve Form Sınıfları */
.page-layout-two-col { 
    grid-template-columns: 2fr 1fr !important;
    gap: 25px; 
    align-items: start; 
}
.sticky-right-col {
    position: sticky;
    top: 80px;
}
.price-label-lg {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}
.price-input-lg {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    height: 50px !important;
}
.btn-submit-lg {
    font-size: 1.1rem !important;
    font-weight: bold;
}
.kilit-tipi-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}
.kilit-tipi-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.w-h-20 {
    width: 20px !important;
    height: 20px !important;
}
.card-primary-border {
    border: 2px solid var(--color-primary);
}

/* Müşteri Tipi Seçimi (Kart Stil) */
.type-selector { display: flex; gap: 15px; margin-bottom: 20px; }
.type-option { flex: 1; position: relative; }
.type-option input { position: absolute; opacity: 0; cursor: pointer; }
.type-card {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px; border: 2px solid var(--border-color); border-radius: 10px;
    background: var(--bg-card); color: var(--text-muted); cursor: pointer;
    transition: var(--transition); font-weight: 600;
}
.type-option input:checked + .type-card {
    border-color: var(--color-primary); color: var(--color-primary); background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.type-card i { font-size: 1.2rem; }

/* İkonlu Inputlar */
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.9rem; pointer-events: none; }
.input-with-icon .form-control { padding-left: 40px; }
.input-with-icon .form-control:focus + i { color: var(--color-primary); } 

/* Checkbox Grid (Ortak) */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.checkbox-btn input[type="checkbox"] { display: none; }
.checkbox-btn label { display: flex; align-items: center; justify-content: center; padding: 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; color: var(--text-muted); font-weight: 500; height: 100%; text-align: center; }
.checkbox-btn input[type="checkbox"]:checked + label { background: #e0f2fe; border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }

/* Checkbox Modern (Yeni Servis Aksesuarlar) */
.checkbox-modern { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.checkbox-modern label {
    background: var(--bg-body); padding: 10px; border-radius: 8px; border: 1px solid transparent;
    text-align: center; font-size: 0.85rem; color: var(--text-main); cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; height: 100%;
}
.checkbox-modern input:checked + label {
    background: #dcfce7; color: #166534; border-color: #bbf7d0; font-weight: 600;
}
.checkbox-modern input { display: none; }


/* Sözleşme Onay Kutusu */
.contract-switch { display: flex; align-items: center; gap: 10px; padding: 15px; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; color: #92400e; font-weight: 600; }
.contract-centered { justify-content: center; width: 100%; cursor: pointer; }


/* Desen Kilidi (Pattern Lock) */
.pattern-wrapper-box { 
    background-color: #212529; 
    padding: 20px; 
    border-radius: 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: fit-content; 
    margin: 0 auto;
    /* Servis Yeni Sayfası için Düzenleme Stili */
    /* transform: scale(0.8); // KALDIRILDI */
    /* transform-origin: top left; // KALDIRILDI */ 
    margin-bottom: -40px;
}
.pattern-title { color: #adb5bd; margin-bottom: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.pattern-point { width: 15px; height: 15px; background-color: rgba(255,255,255,0.3); border-radius: 50%; margin: 20px; display: inline-block; transition: all 0.2s; }
.pattern-point.active { background-color: var(--color-primary); box-shadow: 0 0 15px var(--color-primary); transform: scale(1.5); }
.pattern-lock-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    position: relative; 
    /* YENİ EKLENEN SATIRLAR (Düzgün boyutlandırma için) */
    width: 260px;
    height: 260px;
}
canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.btn-clean-pattern { margin-top: 5px; }


/* Stepper (İlerleme Çubuğu) */
.stepper { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.stepper::before { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 3px; background: var(--border-color); z-index: 1; }
.step-item { position: relative; z-index: 2; text-align: center; width: 20%; }
.step-circle { width: 35px; height: 35px; background: var(--border-color); color: var(--text-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: bold; border: 3px solid var(--bg-card); box-shadow: 0 0 0 2px var(--border-color); transition: all 0.3s; }
.step-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.step-item.active .step-circle { background: var(--color-primary); color: #fff; box-shadow: 0 0 0 2px var(--color-primary); }
.step-item.completed .step-circle { background: var(--color-success); color: #fff; box-shadow: 0 0 0 2px var(--color-success); }

/* Timeline (Zaman Çizelgesi) */
.timeline { position: relative; padding-left: 30px; border-left: 2px solid var(--border-color); }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--color-primary); border: 3px solid var(--bg-card); box-shadow: 0 0 0 2px var(--color-primary); }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; }
.timeline-content { background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.timeline-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-weight: 600; color: var(--text-main); }

/* Info Grid (Detay Sayfası) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.info-box { background: var(--bg-card); padding: 20px; border-radius: 10px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.info-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 5px; }
.info-val { font-size: 1rem; color: var(--text-main); font-weight: 500; word-break: break-all; }

/* Financial Box */
.financial-box { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); }
.fin-item { margin-bottom: 15px; }
.fin-label { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.fin-value { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.fin-value.profit { color: var(--color-success); }
.fin-value.loss { color: var(--color-danger); }

/* --- 14. FOOTER (SİTE ALT BİLGİSİ) --- */
.site-footer {
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    width: 100%;
    background-color: var(--bg-body);
    display: flex; 
    justify-content: center;
    align-items: center; 
    flex-wrap: wrap; 
    gap: 15px;
}

/* Yeni Ana Metin Alanı (Footer'ı ortalar) */
.footer-center-custom {
    flex-grow: 1; 
    text-align: center;
    min-width: 300px; 
}

.footer-main-text {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem; 
    color: var(--text-main); 
    line-height: 1.5;
}

.footer-sub-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Link Stili */
.footer-link {
    color: var(--color-primary); 
    font-weight: 700;
}
.footer-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* LİSANS BİLGİSİ YENİ YERİ: SIDEBAR */
.sidebar-status-box {
    padding: 10px 25px;
    margin: 5px 15px 15px 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-success);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}
.sidebar-status-box i {
    font-size: 1.1rem;
}

.sidebar-version-box {
    padding: 15px 25px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-top: auto;
}

/* Tab Yapısı (Kullanıcılar, Müşteri Detay vb.) */
.tab-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.tab-item {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-item:hover {
    color: var(--color-primary-hover);
}
.tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab-pane { 
    display: none !important; 
}
.tab-pane.active { 
    display: block !important; 
}


/* --- 16. DASHBOARD STİLLERİ --- */

/* Yeni Gelişmiş Üst Grid (Hoş Geldin + Profil Kartı) */
.dashboard-welcome-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol 2/3, Sağ 1/3 Profil Kartı */
    gap: 25px;
    align-items: start;
    margin-bottom: 25px;
}
@media (max-width: 992px) {
    .dashboard-welcome-profile-grid {
        grid-template-columns: 1fr; /* Mobil görünümde tek kolon */
    }
}

.welcome-box-new {
    padding: 20px 25px; 
    border-radius: var(--radius); 
    background: var(--bg-card); /* Sade arka plan */
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.welcome-box-new .welcome-title, .welcome-box-new .welcome-subtitle {
    color: var(--text-main) !important;
}
.welcome-box-new .date-main, .welcome-box-new .date-sub {
    color: var(--color-primary) !important; /* Tarih rengini mor yap */
}

/* Ana İçerik Gridi (Aktivite ve Side Panel) */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 25px;
}
@media (max-width: 992px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-right-stack {
    display:flex; 
    flex-direction:column; 
    gap: 20px;
}

/* Profil Özet Kartı Stilleri */
.profile-summary-card {
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 4px 15px rgba(83, 55, 131, 0.15) !important;
    transition: transform 0.3s;
    cursor: default;
}
.profile-card-inner {
    text-align: center;
}
.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.profile-avatar-xl {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--color-info);
}
.profile-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}
.profile-role {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.profile-stats-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 15px;
}
.stat-item {
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.alert-list-area {
    padding-top: 10px !important;
}

/* Aktivite Listesi (Temizleme) */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.activity-item {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}
.activity-item:last-child {
    border-bottom: none; 
    padding-bottom: 0;
}
.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 5px; 
}
.activity-content {
    flex-grow: 1;
}
.activity-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.95rem;
}
.activity-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.activity-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.no-activity-message {
    text-align:center; 
    color:var(--text-muted); 
    padding:20px;
}
.alert-success-message {
    color:var(--color-success); 
    text-align:center; 
    padding:10px;
}
.alert-list-desc {
    font-size: 0.9rem; 
    color: var(--text-muted);
}

/* Renk Sınıfları */
.text-primary-color {
    color:var(--color-primary) !important;
}
.text-danger-color {
    color:var(--color-danger) !important;
}
.text-success-bold-ml {
    color:var(--color-success); 
    font-weight:bold; 
    margin-left:5px;
}


/* Yardımcı Sınıflar */
.mt-25 {
    margin-top: 25px !important;
}
.mb-25 {
    margin-bottom: 25px !important;
}
.font-weight-600 { font-weight: 600 !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.w-100 { width: 100% !important; }
.display-none { display: none !important; }
/* --- PROFİL DROPDOWN STİLLERİ (YENİ EKLENDİ) --- */
.user-profile-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none; /* Metin seçimi engeller */
}
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.profile-trigger:hover {
    background: rgba(0,0,0,0.03);
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Tetikleyicinin hemen altına konumlandır */
    right: 0;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    padding: 5px 0;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}
.dropdown-item:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-primary);
}
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}
.dropdown-item.logout {
    color: var(--color-danger);
}
/* --- AYARLAR SAYFASI İÇİN YENİ STİLLER (V8.3) --- */

/* Genel Ayarlar Logo/Favicon Kutusu */
.logo-upload-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px; 
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}
.logo-preview-img {
    max-height: 80px;
    height: auto;
    width: auto;
    margin-bottom: 10px;
    display: block;
}
.label-block-mb {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.color-input-lg {
    height: 45px !important;
    padding: 0;
}
.settings-general-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: flex-start;
}
.form-actions-full-right {
    grid-column: 1 / -1;
    text-align: right;
}

/* Profil Ayarları Layout */
.settings-profile-card-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* Sol sidebar, sağ form */
    gap: 30px;
    align-items: flex-start;
}
@media (max-width: 992px) {
    .settings-profile-card-layout {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    padding: 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    position: sticky;
    top: 85px; /* Header altından başlasın */
}

.profile-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    position: relative;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}
.profile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-img-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--color-info);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.profile-img-upload-btn:hover {
    background: var(--color-primary-hover);
}

.profile-name-h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}
.profile-last-login {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Sekme İçindeki Başlıklar */
.section-title-primary {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin: 20px 0 25px 0;
}
.section-title-danger-mt {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-danger);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin: 30px 0 25px 0;
}
.form-actions-right {
    text-align: right;
}

/* Yazdırma Ayarları */
.settings-print-layout {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.input-group-gap {
    display: flex;
    gap: 10px;
}

/* Marka Ekleme Formu */
.brand-add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.brand-add-form .form-control {
    flex-grow: 1;
}
.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.brand-tag {
    display: flex;
    align-items: center;
    background: #e0f2fe;
    color: var(--color-primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 5px;
}
.brand-delete-btn {
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--color-danger);
    opacity: 0.7;
}
.brand-delete-btn:hover {
    opacity: 1;
}
.inline-form {
    display: inline;
}
/* Custom style for the Cache Clear button in the header */
.cache-icon-style {
    background: rgba(83, 55, 131, 0.1); /* Lighter primary color */
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease;
}

.cache-icon-style:hover {
    background: var(--color-primary);
    color: #fff !important;
    transform: scale(1.05); /* Hafif büyüme efekti */
    box-shadow: 0 0 10px rgba(83, 55, 131, 0.5); /* Parlama efekti */
}