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

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-link {
    font-weight: 500;
}

/* Dashboard Kartları */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    border-bottom: none;
}

.card-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

/* Veri Tabloları */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

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

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.required:after {
    content: '*';
    color: red;
    margin-left: 3px;
}

/* Butonlar */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-action {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    margin-right: 5px;
}

/* Düşük Stok Uyarı Bölümü */
.dusuk-stok-uyari {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dusuk-stok-uyari h5 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dusuk-stok-uyari .list-group-item {
    padding: 0.5rem 1rem;
    border-color: rgba(222, 226, 230, 0.5);
}

.badge-dusuk-stok {
    background-color: #ffc107;
    color: #212529;
}

/* İşlem Durumları için Renkler */
.bg-satis {
    background-color: #198754;
    color: white;
}

.bg-ayriltildi {
    background-color: #0d6efd;
    color: white;
}

.bg-odunc {
    background-color: #6f42c1;
    color: white;
}

.bg-zayiat {
    background-color: #dc3545;
    color: white;
}

.bg-giris {
    background-color: #20c997;
    color: white;
}

/* İşlem Güncelleme için özel renk */
.bg-purple {
    background-color: #6f42c1;
    color: white;
}

/* Ek renk tanımlamaları */
.bg-indigo {
    background-color: #6610f2;
    color: white;
}

.bg-cyan {
    background-color: #0dcaf0;
    color: white;
}

/* İşlem ve Tür badge stilleri */
.islem-badge {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
    letter-spacing: 0.5px;
    text-transform: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    border-radius: 30px;
}

.tur-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4em 0.8em;
    letter-spacing: 0.5px;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

/* Form Yardımcı Elementleri */
.form-text {
    font-size: 80%;
    color: #6c757d;
}

/* Tooltip */
.tooltip {
    font-size: 0.8rem;
}

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

/* Dashboard İstatistik Kartları */
.istatistik-kart {
    text-align: center;
    padding: 1.5rem;
    cursor: pointer;
}

.istatistik-kart .sayi {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.istatistik-kart .baslik {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.istatistik-kart .ikon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Tıklanabilir kart stilleri */
a.text-decoration-none .card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

a.text-decoration-none .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

/* İlk blok için renk tanımlamaları */
.row:first-of-type a.text-decoration-none:nth-child(1) .card:hover {
    border-color: rgba(13, 110, 253, 0.5); /* Mavi - Ürünler */
}

.row:first-of-type a.text-decoration-none:nth-child(2) .card:hover {
    border-color: rgba(25, 135, 84, 0.5); /* Yeşil - Kategoriler */
}

.row:first-of-type a.text-decoration-none:nth-child(3) .card:hover {
    border-color: rgba(13, 202, 240, 0.5); /* Açık Mavi - Müşteriler */
}

.row:first-of-type a.text-decoration-none:nth-child(4) .card:hover {
    border-color: rgba(255, 193, 7, 0.5); /* Sarı - İşlemler */
}

/* İkinci blok için renk tanımlamaları */
.row:nth-of-type(2) a.text-decoration-none:nth-child(1) .card:hover {
    border-color: rgba(25, 135, 84, 0.5); /* Yeşil - Satışlar */
}

.row:nth-of-type(2) a.text-decoration-none:nth-child(2) .card:hover {
    border-color: rgba(13, 110, 253, 0.5); /* Mavi - Ayrıltılan */
}

.row:nth-of-type(2) a.text-decoration-none:nth-child(3) .card:hover {
    border-color: rgba(111, 66, 193, 0.5); /* Mor - Ödünç */
}

.row:nth-of-type(2) a.text-decoration-none:nth-child(4) .card:hover {
    border-color: rgba(220, 53, 69, 0.5); /* Kırmızı - Zayiat */
}

/* Giriş/Kayıt Sayfası */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    background-color: white;
}

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

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

/* Responsive tasarım */
@media (max-width: 768px) {
    .istatistik-kart .sayi {
        font-size: 2rem;
    }
    
    .istatistik-kart .ikon {
        font-size: 2.5rem;
    }
} 