/* Genel Stiller */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar Stiller */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff !important;
    width: 180px; /* Genişliği daralttık */
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    margin: 0.2rem 0;
}

.sidebar .nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: #007bff;
    background-color: #e9f2ff;
    border-left: 3px solid #007bff;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-header {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

/* Ana İçerik Stiller */
main {
    padding-top: 1rem;
    margin-left: 180px; /* Yeni sidebar genişliğine göre ayarlandı */
    width: calc(100% - 180px); /* Sidebar genişliğini hesaba kat */
    box-sizing: border-box; /* Padding ve border'ı genişliğe dahil et */
}

/* Container Stiller */
.container-fluid {
    padding-right: 10px;
    padding-left: 10px;
}

/* Kart Stiller */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    transition: transform 0.3s;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    padding: 0.5rem;
}

.card-body {
    padding: 0.5rem;
}

/* Stat Kartları */
.stat-card {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.stat-card .stat-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2rem;
    opacity: 0.2;
}

.stat-card .stat-title {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.stat-card .stat-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
}

/* Renk Sınıfları */
.bg-primary-light {
    background-color: #e9f2ff;
}

.bg-success-light {
    background-color: #e6f8f0;
}

.bg-warning-light {
    background-color: #fff8e6;
}

.bg-danger-light {
    background-color: #ffe6e6;
}

.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Tablo Stiller */
.table {
    border-collapse: separate;
    border-spacing: 0 5px;
    width: 100%;
    table-layout: fixed;
}

.table-responsive {
    overflow-x: hidden;
}

.table thead th {
    border-bottom: none;
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    padding: 5px 8px;
    font-size: 0.9rem;
}

.table tbody tr {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
    border-radius: 5px;
    margin-bottom: 5px;
}

.table tbody td {
    padding: 5px 8px;
    vertical-align: middle;
    border-top: none;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badge */
.badge {
    padding: 3px 6px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-active {
    background-color: #e6f8f0;
    color: #28a745;
}

.badge-expiring {
    background-color: #fff8e6;
    color: #ffc107;
}

.badge-expired {
    background-color: #ffe6e6;
    color: #dc3545;
}

/* Form Stiller */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    border-color: #80bdff;
}

.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Login Sayfası */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 3rem;
    color: #007bff;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        width: 100%;
    }
    
    .sidebar-sticky {
        height: auto;
    }
    
    main {
        margin-left: 0 !important;
    }
}
