﻿/* =============================================
   Personam.net - Kurumsal Yönetim Sistemi
   Ana Stil Dosyası
   ============================================= */

:root {
    /* Backgrounds */
    --bg-body: #fdfdfd; /* Çok açık krem alt tonlu premium beyaz */
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    /* Renk Sistemi (Premium Indigo & Slate) */
    --primary: #4f46e5; /* Indigo 600 - Çok kurumsal ve asil */
    --primary-dark: #3730a3; /* Indigo 800 */
    --primary-light: #e0e7ff; /* Indigo 100 */
    --primary-50: #eef2ff; /* Indigo 50 */
    
    --accent: #0f766e; /* Teal 700 - Zengin vurgu rengi */

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;

    /* Nötr Tonlar (Softer Grays) */
    --gray-50: #fcfcfc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Sidebar */
    --sidebar-bg: #0f172a; /* Slate 900 */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 0px;

    /* Top Bar */
    --topbar-height: 72px;

    /* Yumuşak Hatlar */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Gölgeler - Çok yayılmış, ultra-soft (Stripe style) */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.02);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 20px 40px -10px rgba(15, 23, 42, 0.06), 0 10px 20px -10px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 0 15px 25px -12px rgba(15, 23, 42, 0.04);
    
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root.dark {
    /* Backgrounds for dark mode */
    --bg-body: var(--gray-50);
    --bg-card: #1e293b; /* gray-100 inverted */
    --bg-card-hover: #0f172a; /* gray-50 inverted */
    
    /* Nötr Tonlar Inverted for Dark Mode */
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    
    /* Adjusted theme colors for contrast */
    --primary-light: rgba(37, 99, 235, 0.2);
    --primary-50: rgba(37, 99, 235, 0.1);
    
    --success-light: rgba(5, 150, 105, 0.2);
    --warning-light: rgba(217, 119, 6, 0.2);
    --danger-light: rgba(220, 38, 38, 0.2);
    --info-light: rgba(8, 145, 178, 0.2);

    /* Shadows inverted */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.5);
    --shadow: 0 1px 3px 0 rgba(0,0,0,.5), 0 1px 2px -1px rgba(0,0,0,.5);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.5), 0 2px 4px -2px rgba(0,0,0,.5);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.5), 0 4px 6px -4px rgba(0,0,0,.5);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--gray-700);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* =============================================
   LAYOUT
   ============================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-width))); }

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.sidebar-logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: #fff;
    letter-spacing: -0.5px;
}

.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section { margin-bottom: 24px; }

.nav-section-title {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gray-500);
    padding: 0 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.8; }

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.nav-item.active {
    color: #fff;
    background: var(--primary);
}

/* Footer / User */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.user-card { display: flex; align-items: center; gap: 10px; min-width: 0; }

.user-avatar {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
    flex-shrink: 0;
}

.user-info { min-width: 0; }

.user-name {
    display: block;
    font-size: 13px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 130px;
}

.user-role {
    display: block;
    font-size: 11px; color: var(--gray-500);
}

.logout-btn {
    color: var(--gray-500);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
}

.logout-btn:hover { color: var(--danger); background: rgba(220,38,38,.1); }
.logout-btn svg { width: 18px; height: 18px; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

.sidebar.collapsed ~ .main-content { margin-left: 0; }

/* Top Bar */
.top-bar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0; z-index: 50;
    gap: 16px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--gray-500); padding: 4px;
}
.menu-toggle svg { width: 22px; height: 22px; }

.top-bar-left { flex: 1; }

.page-title {
    font-size: 18px; font-weight: 700; color: var(--gray-800);
    letter-spacing: -0.3px;
}

.top-bar-right { display: flex; align-items: center; gap: 20px; }

.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--gray-500);
    transition: color var(--transition);
}
.notification-bell:hover { color: var(--gray-700); }
.notification-bell svg { width: 20px; height: 20px; }

.notif-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--danger);
    color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 5px;
    border-radius: 50px;
    line-height: 1.4;
}

.top-bar-date {
    font-size: 13px; color: var(--gray-500); font-weight: 500;
}

/* Content Area */
.content-area {
    padding: 28px;
    flex: 1;
    min-width: 0;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #a7f3d0; }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #fcd34d; }
.alert-info { background: var(--info-light); color: var(--info); border: 1px solid #67e8f9; }

/* =============================================
   CARDS (VIP Look)
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.05); /* Çok ince premium kenarlık */
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow);
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 16px; 
    font-weight: 700; 
    color: var(--gray-800);
    letter-spacing: -0.3px;
}

.card-body { padding: 24px 28px; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover { 
    box-shadow: var(--shadow-md); 
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 22px; height: 22px; }

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-icon.cyan { background: var(--info-light); color: var(--info); }

.stat-info {}
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--gray-800); letter-spacing: -0.5px; line-height: 1.2; }
.stat-sub { font-size: 11.5px; color: var(--gray-400); margin-top: 2px; }

/* =============================================
   TABLES (VIP Ferah Tasarım)
   ============================================= */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    /* Usta Panel'de border yok veya çok ince */
    border: 1px solid rgba(15, 23, 42, 0.04); 
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px; /* Biraz büyüttüm okunaklılık için */
}

.data-table thead { 
    background: var(--gray-50); 
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    padding: 16px 20px; /* Daha fazla whitespace */
    text-align: left;
    font-weight: 600;
    color: var(--gray-500); /* Usta paneldeki gibi gri */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 20px; /* Ferah padding */
    border-bottom: 1px solid var(--gray-100); /* İncecik yatay çizgi */
    color: var(--gray-700);
    vertical-align: middle;
    font-weight: 500;
}

.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Avatar Pill in Table */
.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}
.table-avatar-container {
    display: flex;
    align-items: center;
}

/* =============================================
   BADGES (Usta Panel Style)
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }

/* =============================================
   PILL TABS (Work Orders Filter)
   ============================================= */
.pill-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pill-tab {
    padding: 8px 16px;
    border-radius: 50px;
    background: #fff;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition);
}
.pill-tab:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}
.pill-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   BUTTONS (Premium Look)
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.97);
}

.btn svg { width: 18px; height: 18px; }

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25); 
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    color: #fff; 
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-success { background: var(--success); color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.btn-success:hover { background: #059669; color: #fff; transform: translateY(-2px); }
.btn-success:active { transform: translateY(0) scale(0.97); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-2px); }
.btn-danger:active { transform: translateY(0) scale(0.97); }

.btn-warning { background: var(--warning); color: #fff; }

.btn-outline {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}
.btn-outline:hover { 
    background: var(--gray-50); 
    border-color: var(--gray-300); 
    color: var(--gray-900); 
}
.btn-outline:active { transform: scale(0.97); }

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: var(--radius-sm); }

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* =============================================
   FORMS & INPUTS
   ============================================= */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.01);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-control::placeholder { color: var(--gray-400); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

textarea.form-control { resize: vertical; min-height: 80px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group { flex: 1; }

.form-text { font-size: 11.5px; color: var(--gray-400); margin-top: 4px; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 200ms ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--gray-800); }

.modal-close {
    background: none; border: none;
    color: var(--gray-400); cursor: pointer;
    padding: 4px; border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.modal-close:hover { color: var(--gray-600); background: var(--gray-100); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    justify-content: center;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition);
}

.pagination a:hover { background: var(--gray-100); color: var(--gray-800); }
.pagination .active { background: var(--primary); color: #fff; }

/* =============================================
   TOOLBAR (Page Utility Bar)
   ============================================= */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-left { display: flex; align-items: center; gap: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 14px 8px 36px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
    width: 260px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.search-box input:focus { border-color: var(--primary); }

.search-box svg {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--gray-400);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .sidebar { 
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
    }
    .sidebar.mobile-open { transform: translateX(0) !important; }
    .main-content { margin-left: 0; padding-bottom: 80px; }
    .menu-toggle { display: none !important; }
    .content-area { padding: 20px; }
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid, .grid-2-cols { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
    .dashboard-charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a2744 50%, var(--gray-800) 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    font-size: 22px;
}

.login-logo h1 {
    font-size: 22px; font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.5px;
}

.login-logo p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--gray-400); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =============================================
   MOBİL (WEBVIEW) OPTİMİZASYONLARI
   ============================================= */
.mob-nav { display: none; }
.sidebar-overlay { display: none; }
.fab-overlay { display: none; }
.fab-sheet { display: none; }

@media (max-width: 1024px) {
    /* Daha büyük dokunmatik alanlar */
    .btn, .form-control { min-height: 48px; }
    .nav-item { min-height: 48px; margin-bottom: 8px; }
    
    /* Alt Menü (Bottom Navigation) - YENİ TASARIM */
    .mob-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        height: 64px;
        z-index: 999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    }
    .mob-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        color: #94a3b8; flex: 1; padding: 6px 0; gap: 3px; text-decoration: none;
        transition: color 0.2s;
    }
    .mob-item svg { width: 22px; height: 22px; }
    .mob-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }
    .mob-item.active { color: #10b981; }
    .mob-item.active svg { stroke-width: 2.5; }
    
    /* FAB Butonu (Ortadaki büyük + butonu) */
    .mob-fab-wrapper {
        display: flex; align-items: center; justify-content: center;
        flex: 1; position: relative;
    }
    .mob-fab {
        width: 56px; height: 56px;
        background: #1e293b;
        border: none; border-radius: 50%;
        color: #fff; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        position: absolute; bottom: 8px;
        box-shadow: 0 4px 15px rgba(30,41,59,0.4);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
        z-index: 1001;
    }
    .mob-fab:active { transform: scale(0.92); }
    .mob-fab.active {
        background: #ef4444;
        transform: rotate(45deg);
    }
    .mob-fab svg { color: #fff; stroke: #fff; }
    
    /* FAB Overlay */
    .fab-overlay {
        display: none;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .fab-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* FAB Bottom Sheet */
    .fab-sheet {
        display: flex; flex-direction: column;
        position: fixed;
        bottom: -100%; left: 0; right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        z-index: 1002;
        padding: 8px 0 env(safe-area-inset-bottom);
        transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 70vh;
        overflow-y: auto;
    }
    .fab-sheet.active {
        bottom: 0;
    }
    .fab-sheet-handle {
        width: 40px; height: 4px;
        background: #d1d5db; border-radius: 2px;
        margin: 8px auto 12px;
    }
    .fab-sheet-item {
        display: flex; align-items: center; gap: 14px;
        padding: 14px 20px;
        text-decoration: none; color: #1f2937;
        transition: background 0.15s;
    }
    .fab-sheet-item:active { background: #f8fafc; }
    .fab-sheet-item strong { display: block; font-size: 15px; font-weight: 600; color: #111827; }
    .fab-sheet-item small { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
    .fab-sheet-icon {
        width: 42px; height: 42px; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .fab-sheet-primary {
        background: #f0fdf4; border-radius: 14px; margin: 0 12px 4px; padding: 16px;
    }
    .fab-sheet-divider {
        padding: 12px 20px 6px;
        border-top: 1px solid #f1f5f9;
        margin-top: 4px;
    }
    .fab-sheet-divider span {
        font-size: 12px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px;
    }
    
    /* Alt menü için içerikte boşluk bırak */
    .content-area { padding-bottom: 90px; padding-top: 16px; }
    
    /* Overlay & Sidebar */
    .sidebar-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15, 23, 42, 0.6); z-index: 9000;
        display: none;
    }
    .sidebar-overlay.active { display: block; }
    .sidebar { width: 280px; border-top-right-radius: 16px; border-bottom-right-radius: 16px; box-shadow: 4px 0 24px rgba(0,0,0,0.2); }
    .sidebar.mobile-open { transform: translateX(0) !important; z-index: 9999; }
    /* Top Bar İyileştirmeleri */
    .top-bar { padding: 0 12px; gap: 8px; }
    .page-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
    .top-bar-date { display: none; }
    .tenant-switcher select { max-width: 110px; font-size: 11px; padding: 4px 8px; }

    /* Tabloları Mobilde Kutu (Card) Görünümüne Çevir */
    .table-container {
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
        margin-bottom: 20px;
    }
    .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
        display: block;
        width: 100%;
    }
    .data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .data-table tr {
        background: var(--bg-card);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        margin-bottom: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 0;
        position: relative;
    }
    .dark .data-table tr {
        border-color: rgba(255,255,255,0.1);
    }
    .data-table td {
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        position: relative;
        padding-left: 35%;
        text-align: right;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-right: 12px;
        font-size: 13px;
    }
    .dark .data-table td {
        border-bottom-color: rgba(255,255,255,0.05);
    }
    .data-table td:last-child {
        border-bottom: 0;
    }
    .data-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 32%;
        padding-left: 12px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        font-size: 12px;
        color: var(--text-muted);
        top: 50%;
        transform: translateY(-50%);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .data-table td.text-right {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .login-card { padding: 32px 24px; border-radius: var(--radius-lg); }
    .content-area { padding: 12px; padding-bottom: 90px; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
}
