/* ===================================
   Infrozer - Bootstrap Panel CSS
   Mobil Uyumlu Modern Panel Tasarımı
   =================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --purple: #a855f7;
    --sidebar-width: 280px;
    --topbar-height: 70px;
}

/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
}

/* Sidebar Styles - Bootstrap Offcanvas İçin */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background: white;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.sidebar-logo i {
    font-size: 1.75rem;
}

.sidebar-user {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.sidebar-user-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.user-role i {
    color: var(--warning);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    margin: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background: #e9ecef;
    color: var(--primary);
    text-decoration: none;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

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

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

/* Top Bar */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.top-bar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #495057;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #e9ecef;
    color: var(--primary);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background: #e9ecef;
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.user-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    border-color: var(--primary);
}

/* Content Area - Compact Version */
.content-area {
    padding: 1.25rem;
    max-width: 1600px;
}

/* Stats Cards - Compact Version */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.stat-card-icon.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.stat-card-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.stat-card-icon.info {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
}

.stat-card-icon.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.stat-card-icon.purple {
    background: linear-gradient(135deg, var(--purple) 0%, #9333ea 100%);
}

/* Activity Icons */
.stat-card-icon.activity-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-card-icon.activity-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.stat-card-icon.activity-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.stat-card-icon.activity-info {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
}

.stat-card-icon.activity-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.8125rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.3;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.stat-card-trend.up {
    color: var(--success);
}

.stat-card-trend.down {
    color: var(--danger);
}

.stat-card-trend.text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

.stat-card-trend.text-danger {
    color: var(--danger) !important;
}

.stat-card-trend.text-warning {
    color: var(--warning) !important;
}

/* Action Cards - Compact Version */
.action-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    text-decoration: none;
}

.action-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.action-card-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.action-card-content p {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}

/* Custom Card Styles - Compact Version */
.custom-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.2s ease;
}

.custom-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.custom-card-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.custom-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.custom-card-body {
    padding: 1rem;
}

/* Badges - Compact Version */
.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* Buttons - Compact Version */
.btn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Tables */
.table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Charts - Compact Version */
.chart-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

/* Progress Bars - Compact Version */
.progress {
    height: 6px;
    border-radius: 6px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 100%);
}

/* Responsive - Mobile First */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .top-bar {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.125rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .stat-card-value {
        font-size: 1.25rem;
    }
    
    .stat-card-label {
        font-size: 0.75rem;
    }
    
    .stat-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .action-card {
        padding: 0.875rem;
    }
    
    .action-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 0.9375rem;
    }
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-success-gradient {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Section Headers - Compact Version */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

/* Empty States - Compact Version */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Alerts - Compact Version */
.alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.alert i {
    vertical-align: middle;
}

/* Pagination - Compact Version */
.pagination {
    margin-bottom: 0;
}

.pagination-sm .page-link {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
}

.page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
}

