/* Ana stil dosyası */

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    max-width: 1600px;
}

footer {
    margin-top: auto;
}

/* Kart stilleri */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Dashboard karları */
.dashboard-card {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-card .card-title {
    font-size: 1rem;
    color: #6c757d;
}

/* Tablolar */
.table-responsive {
    overflow-x: auto;
}

.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter, 
.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_processing, 
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.25rem;
}

/* Form stilleri */
.form-label {
    font-weight: 500;
}

.required::after {
    content: "*";
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Yetki hatası sayfası */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page .error-icon {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 2rem;
}

.error-page .error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Modern Dashboard Stilleri */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

.chart-pie, .chart-bar {
    position: relative;
    height: 15rem;
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Kritik stok göstergeleri */
.low-stock {
    color: #e74a3b;
    font-weight: bold;
}

.medium-stock {
    color: #f6c23e;
    font-weight: bold;
}

/* Progress bar stilleri */
.progress {
    height: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #eaecf4;
    border-radius: 0.35rem;
}

.progress-bar {
    height: 1rem;
}

.small {
    font-size: 80%;
    font-weight: 400;
}

/* Responsive ayarlamalar */
@media (max-width: 768px) {
    .chart-area {
        height: 15rem;
    }
    
    .chart-pie, .chart-bar {
        height: 12rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Ek Bileşenler */
.shadow {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15) !important;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.float-end {
    float: right !important;
}

/* Login sayfası */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 4rem;
    color: #212529;
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Mobil uyumluluk için medya sorguları */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .dashboard-card .card-value {
        font-size: 1.5rem;
    }
    
    .error-page .error-icon {
        font-size: 4rem;
    }
    
    .error-page .error-title {
        font-size: 2rem;
    }
    
    .error-page .error-message {
        font-size: 1rem;
    }
}

/* Yetki hatası sayfası için ekstra stil */
.access-denied {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Yazdırma için stil */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container-fluid {
        width: 100%;
        max-width: none;
    }
    
    body {
        background-color: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}