/* FitYönet - Sage Green Design System */

:root {
    /* Primary Colors - Sage Green Palet */
    --primary: #4F8F7A;
    --primary-light: #7BAF9E;
    --primary-dark: #3D7A66;
    --primary-muted: #A8CFC2;
    
    /* Background Colors */
    --bg-primary: #F4F6F5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #EDF1EF;
    --bg-card: #ffffff;
    --bg-card-hover: #F8FAF9;
    
    /* Text Colors */
    --text-primary: #1F2D2B;
    --text-secondary: #3D4F4B;
    --text-muted: #5F7770;
    --text-light: #8A9E98;
    
    /* Status Colors */
    --success: #4F8F7A;
    --success-light: #D4E8E1;
    --warning: #D4A35A;
    --warning-light: #FDF4E7;
    --danger: #C75D5D;
    --danger-light: #FCEAEA;
    --info: #5A8FD4;
    --info-light: #E7F0FD;
    
    /* Borders */
    --border-color: #D4DDD9;
    --border-light: #E8EDEB;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(31, 45, 43, 0.06);
    --shadow-md: 0 4px 12px rgba(31, 45, 43, 0.08);
    --shadow-lg: 0 10px 30px rgba(31, 45, 43, 0.1);
    --shadow-xl: 0 20px 50px rgba(31, 45, 43, 0.12);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    
    /* Legacy support */
    --gradient-primary: var(--primary);
    --gradient-success: var(--success);
    --gradient-warning: var(--warning);
    --gradient-danger: var(--danger);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: -1;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: var(--primary-muted);
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(80px);
}

.bg-pattern::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(80px);
}

/* Cards */
.glass, .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999; /* Overlay'in üstünde olmalı */
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Navigation */
.nav-section {
    padding: 16px 12px;
}

.nav-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item.active svg {
    color: white;
}

.nav-badge {
    margin-left: auto;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.nav-item.active .nav-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 143, 122, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

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

.btn-success:hover {
    background: var(--primary-dark);
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: var(--primary);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 143, 122, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(79, 143, 122, 0.15);
    color: var(--primary);
}

.badge-success {
    background: var(--success-light);
    color: var(--primary-dark);
}

.badge-warning {
    background: var(--warning-light);
    color: #996F2D;
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    background: var(--primary);
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 45, 43, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    padding: 0 4px;
}

.tab {
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-muted);
}

.alert-warning {
    background: var(--warning-light);
    color: #996F2D;
    border: 1px solid rgba(212, 163, 90, 0.3);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(199, 93, 93, 0.3);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid rgba(90, 143, 212, 0.3);
}

/* Utility Classes */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.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; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.hidden { display: none; }

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 45, 43, 0.5);
    z-index: 95;
}

.sidebar-overlay.open {
    display: block;
}

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open,
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .sidebar-overlay.open,
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 76px;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    /* Mobile table view */
    .table-container {
        overflow-x: visible;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody tr {
        display: block;
        padding: 16px;
        margin-bottom: 12px;
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }
    
    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
        gap: 12px;
    }
    
    /* data-label olan td'ler - sol label, sağ değer */
    .data-table tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-muted);
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    /* user-info içeren td - kart başlığı gibi ortalanmış */
    .data-table tbody td:has(.user-info) {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 14px;
        margin-bottom: 8px;
        border-bottom: 2px solid var(--border-color);
    }
    
    .data-table tbody td:has(.user-info)::before {
        display: none;
    }
    
    .data-table tbody td:has(.user-info) .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .data-table tbody td:has(.user-info) .user-info .avatar {
        margin-bottom: 8px;
    }
    
    .data-table tbody td:has(.user-info) .user-details {
        text-align: center;
    }
    
    /* Son td - işlem butonları */
    .data-table tbody td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 14px;
        margin-top: 4px;
        gap: 8px;
    }
    
    .data-table tbody td:last-child::before {
        display: none;
    }
    
    /* Sadece buton içeren son td'de border-top ekle */
    .data-table tbody td:last-child:has(.btn) {
        border-top: 1px dashed var(--border-color);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}

/* =====================================================
   KAPSAMLI RESPONSIVE KURALLAR
   ===================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 2 kolonlu grid'ler korunsun */
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet ve Mobil (768px altı) */
@media (max-width: 768px) {
    /* Tüm modal'lar tam genişlik */
    .modal {
        width: 95% !important;
        max-width: none !important;
        margin: 10px auto;
    }
    
    .modal-overlay .modal {
        width: 95% !important;
        max-width: 100% !important;
    }
    
    /* Inline grid'leri tek kolona çevir */
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns:1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Flex row'ları column yap */
    .page-header,
    .card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .page-header > div:first-child {
        text-align: center;
    }
    
    .page-header .flex {
        flex-direction: column;
        width: 100%;
    }
    
    .page-header .flex .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Arama kutusu tam genişlik */
    .page-header input[type="text"],
    .page-header input[type="search"],
    .page-header form {
        width: 100% !important;
    }
    
    .page-header form {
        flex-direction: column !important;
    }
    
    .page-header form > div {
        width: 100%;
    }
    
    .page-header form input {
        width: 100% !important;
    }
    
    /* Tab butonları esnek */
    [style*="display:flex"][style*="gap:8px"] {
        flex-wrap: wrap;
    }
    
    /* Sabit genişlikli elemanlar */
    [style*="width: 400px"],
    [style*="width: 450px"],
    [style*="width: 500px"],
    [style*="width: 600px"],
    [style*="width: 700px"],
    [style*="width:400px"],
    [style*="width:450px"],
    [style*="width:500px"],
    [style*="width:600px"],
    [style*="width:700px"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Min-width kaldır */
    [style*="min-width: 700px"],
    [style*="min-width:700px"] {
        min-width: 0 !important;
    }
    
    /* Form grupları */
    .form-row,
    [style*="display: grid"][style*="gap"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Buton grupları */
    .btn-group,
    .flex.gap-2,
    .flex.gap-3 {
        flex-wrap: wrap;
    }
    
    /* İstatistik kartları 2'li grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Detay sayfası bilgi kutuları */
    .info-grid,
    [style*="display:grid"][style*="gap:16px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobil (640px altı) */
@media (max-width: 640px) {
    /* Ana içerik padding */
    .main-content {
        padding: 16px 12px !important;
    }
    
    /* Kart padding */
    .card.glass,
    .card {
        border-radius: var(--radius-md);
    }
    
    .card-body {
        padding: 12px !important;
    }
    
    /* Tab butonları tam genişlik */
    [style*="display:flex"][style*="gap:8px"] > a.btn,
    [style*="display:flex"][style*="gap:8px"] > button.btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Badge'ler küçült */
    .badge,
    [style*="border-radius:12px"][style*="padding:2px 8px"] {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
    
    /* Haftalık takvim scroll */
    .weekly-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Sayfalama */
    [style*="justify-content:space-between"][style*="border-top"] {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Avatar küçült */
    .avatar,
    [style*="border-radius:50%"][style*="width:40px"] {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }
    
    /* User info */
    .user-info {
        gap: 8px;
    }
    
    .user-details h4 {
        font-size: 0.9rem;
    }
    
    .user-details p {
        font-size: 0.75rem;
    }
    
    /* Buton icon */
    .btn-icon {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
    }
    
    .btn-icon svg {
        width: 16px;
        height: 16px;
    }
    
    /* Modal tam ekran */
    .modal-overlay .modal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-height: 100vh;
    }
    
    .modal-header {
        position: sticky;
        top: 0;
        background: var(--bg-card);
        z-index: 10;
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
        overflow-y: auto;
    }
    
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    /* SMS değişken etiketleri */
    .variable-tag {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
    
    /* Tablo mobil görünümü iyileştirme */
    .data-table tbody td {
        font-size: 0.85rem;
    }
    
    .data-table tbody td:first-child {
        font-weight: 600;
    }
    
    /* İşlem butonları */
    .data-table tbody td:last-child {
        display: flex;
        gap: 8px;
        justify-content: center !important;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px dashed var(--border-color) !important;
        border-bottom: none !important;
    }
    
    /* Grafik container */
    [style*="height: 300px"],
    [style*="height:300px"] {
        height: 200px !important;
    }
}

/* Küçük mobil (480px altı) */
@media (max-width: 480px) {
    /* Stat kartları tek kolon */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Başlık boyutu */
    .page-title {
        font-size: 1.25rem !important;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    /* Card title */
    .card-title {
        font-size: 0.95rem !important;
    }
    
    /* Butonlar */
    .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .btn-sm {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    /* Form elemanları */
    .form-input,
    .form-select,
    textarea.form-input {
        font-size: 16px !important; /* iOS zoom engellemek için */
        padding: 10px 12px !important;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Tab butonları alt alta */
    [style*="display:flex"][style*="gap:8px"]:has(> .btn) {
        flex-direction: column;
    }
    
    /* Sayfalama butonları */
    .btn-sm[href*="page="] {
        min-width: 32px;
        padding: 6px 8px !important;
    }
}

/* Yatay mod (landscape) düzeltmeleri */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-overlay .modal {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar {
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .no-print, .sidebar, .mobile-header, .sidebar-overlay, .bg-pattern {
        display: none !important;
    }
    
    .layout {
        display: block !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 10px !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card, .glass {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Icon stat backgrounds */
.stat-card .stat-icon.bg-primary { background: var(--primary); }
.stat-card .stat-icon.bg-success { background: var(--success); }
.stat-card .stat-icon.bg-warning { background: var(--warning); }
.stat-card .stat-icon.bg-danger { background: var(--danger); }
.stat-card .stat-icon.bg-info { background: var(--info); }

/* Legacy gradient overrides */
[style*="gradient-primary"], [style*="var(--gradient-primary)"] {
    background: var(--primary) !important;
}
[style*="gradient-success"], [style*="var(--gradient-success)"] {
    background: var(--success) !important;
}
[style*="gradient-warning"], [style*="var(--gradient-warning)"] {
    background: var(--warning) !important;
}

/* Quick Filter Buttons */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-filters .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
}

/* Weekly Calendar */
.weekly-calendar {
    min-width: 700px;
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Landing page styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #fff 50%, var(--primary-muted) 100%);
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 28px;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.hero-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .navbar-links span {
        display: none;
    }
}

/* Footer */
.footer {
    padding: 40px 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Feature list for hero card */
.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(79, 143, 122, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon svg {
    width: 18px;
    height: 18px;
}
