/* =============================================
   AppReview Analiz - Ana Stil Dosyasi
   ============================================= */

/* Genel Ayarlar */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f6f7f9;
}

main {
    flex: 1;
}

/* Kart Stilleri */
.card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Dashboard Kartlari */
.stat-card {
    border-left: 4px solid;
    border-radius: 10px;
}

.stat-card.primary { border-left-color: #0d6efd; }
.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger  { border-left-color: #dc3545; }
.stat-card.info    { border-left-color: #0dcaf0; }

/* Tablo Stilleri */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 2px;
}

.table td {
    vertical-align: middle;
}

/* Yorum Kartlari */
.review-card {
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
}

.review-card.rating-1,
.review-card.rating-2 { border-left-color: #dc3545; }
.review-card.rating-3 { border-left-color: #ffc107; }
.review-card.rating-4 { border-left-color: #198754; }
.review-card.rating-5 { border-left-color: #198754; }

/* Yildiz Rating */
.stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Kategori Badge */
.category-badge {
    font-size: 0.75rem;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-weight: 600;
}

/* Sidebar (Admin) */
.sidebar {
    min-height: calc(100vh - 56px);
    width: 250px;
}

.sidebar .nav-link {
    padding: 0.75rem 1.25rem;
    color: rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

.sidebar .nav-link.active {
    background: #0d6efd;
}

/* Form Stilleri */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buton Animasyonlari */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Grafik Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }
}

/* =============================================
   Acik Tema Zorlayici (Bootstrap dark attribute olsa bile acik gorunum)
   ============================================= */
:root,
[data-bs-theme="dark"] {
    color-scheme: light;
    --bs-body-bg: #f5f7fb;
    --bs-body-color: #263238;
    --bs-emphasis-color: #0f1e29;
    --bs-secondary-color: #5b6b7a;
    --bs-secondary-bg: #eef1f6;
    --bs-tertiary-bg: #f8f9fc;
    --bs-border-color: #e3e8ee;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.08);
    --bs-body-bg-rgb: 245, 247, 251;
    --bs-secondary-color-rgb: 91, 107, 122;
    --bs-secondary-bg-rgb: 238, 241, 246;
    --bs-tertiary-bg-rgb: 248, 249, 252;
    --bs-card-bg: #ffffff;
    --bs-card-color: #263238;
    --bs-card-border-color: rgba(0, 0, 0, 0.075);
    --bs-dropdown-bg: #ffffff;
    --bs-dropdown-color: #263238;
    --bs-dropdown-link-color: #263238;
    --bs-dropdown-link-hover-bg: #f1f3f8;
    --bs-body-font-weight: 400;
}

body {
    background-color: #f5f7fb;
}

.card {
    box-shadow: 0 1px 3px rgba(16, 30, 45, 0.06);
}

.text-muted {
    color: #5b6b7a !important;
}

/* Yazilari daha okunur yap */
body, p {
    color: #263238;
}

.table {
    --bs-table-bg: #ffffff;
    --bs-table-color: #263238;
}

.form-control,
.form-select {
    background-color: #ffffff;
    color: #263238;
    border-color: #d4dbe3;
}

::selection {
    background: rgba(13, 110, 253, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e9ecef;
}

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a929c;
}
