﻿/* --- Genel Sayfa Yapısı --- */
body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Navigasyon Bar (Yatay) --- */
.navbar {
    padding: 0.7rem 1.5rem;
    background-color: #1a1d20 !important; /* Derin siyah/gri */
    border-bottom: 2px solid #0d6efd; /* Alt kısımda ince mavi bir çizgi */
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

/* Menü Linkleri */
.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    margin: 0 4px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

    /* Hover (Üzerine Gelince) */
    .nav-link:hover {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Active (Seçili Sayfa) */
    .nav-link.active {
        color: #fff !important;
        background-color: #0d6efd !important;
        box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    }

/* --- Kartlar ve Tablolar --- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

    .card:hover {
        transform: translateY(-2px);
    }

.table-responsive {
    border-radius: 12px;
    background: white;
    padding: 10px;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
}

/* --- Modallar --- */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

/* --- Mobil Uyumluluk Ayarları --- */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-link {
        margin: 5px 0;
        padding-left: 15px !important;
    }

        .nav-link.active {
            box-shadow: none;
        }
}

/* --- Blazor Hata Çerçevesi --- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

table tbody tr[style*="cursor: pointer"]:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
    transition: background-color 0.2s ease;
}

.x-small {
    font-size: 0.75rem;
    font-weight: 500;
}

.bg-success-subtle {
    background-color: #d1e7dd;
}

.bg-danger-subtle {
    background-color: #f8d7da;
}