/**
 * Özel CSS Stilleri
 */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.table {
    background-color: white;
}

.btn {
    border-radius: 0.25rem;
}

.alert {
    border-radius: 0.5rem;
}

.badge {
    font-size: 0.875em;
    padding: 0.35em 0.65em;
}

.pagination {
    margin-top: 1rem;
}

.page-link {
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Top Navbar Styles */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle-btn {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #495057;
    padding: 0.5rem;
    cursor: pointer;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #212529;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.user-info i {
    font-size: 1.5rem;
    color: #6c757d;
}

/* Sidebar Styles */
body.logged-in {
    padding-top: 70px; /* Navbar height */
}

.sidebar {
    position: fixed;
    top: 70px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: #f8f9fa;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

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

.sidebar-header h5 {
    color: #495057;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 0.5rem 0;
}

.sidebar-nav .nav-link {
    padding: 0.875rem 1.5rem;
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.sidebar-nav .nav-link i {
    margin-right: 1rem;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-nav .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
    border-left-color: #667eea;
}

.sidebar-nav .nav-link.active {
    background-color: #e9ecef;
    color: #212529;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    transition: opacity 0.3s ease;
}

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

.main-content {
    margin-left: 0;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    background-color: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* Dashboard Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.dashboard-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1400px) {
    .dashboard-cards-row.summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-cards-row.action-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.dashboard-summary-card .card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-summary-card .card-info {
    flex: 1;
}

.dashboard-summary-card .card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dashboard-summary-card .card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.dashboard-summary-card .card-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

.dashboard-summary-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.dashboard-action-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.dashboard-action-card .action-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dashboard-action-card .action-card-content {
    flex: 1;
}

.dashboard-action-card .action-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.dashboard-action-card .action-card-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Desktop: Sidebar always visible */
@media (min-width: 992px) {
    .sidebar {
        left: 0;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .sidebar-toggle-btn {
        display: none;
    }
}

/* Mobile: Sidebar hidden by default */
@media (max-width: 991px) {
    .sidebar {
        left: -280px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .dashboard-cards-row {
        grid-template-columns: 1fr;
    }
    
    .navbar-content {
        padding: 0 1rem;
    }
}

