/* Subaru Servis Portal - Custom Styles */

:root {
    --bs-primary: #0054a6;
    --bs-primary-rgb: 0, 84, 166;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0054a6 0%, #003366 100%);
}

/* Card Hover Effects */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    background-color: #fff;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    padding: 0 2px;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

/* Toast Auto Hide */
.toast {
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Form Improvements */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 84, 166, 0.25);
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sticky-top {
        z-index: 1000;
    }
}

/* Card improvements */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--bs-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Loading States */
.btn:disabled {
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-1 {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none !important;
    }
}

/* Select2 - City Selector Özelleştirmesi */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
}

.select2-container--bootstrap-5 .select2-selection--single:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 84, 166, 0.25);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid var(--bs-primary);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 84, 166, 0.15);
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.6rem 1rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--bs-primary);
}

/* Yıldızlı şehirler için özel stil */
.city-starred {
    font-weight: 600;
    color: #0054a6;
}

.city-starred .city-star {
    color: #ffc107;
    margin-right: 0.25rem;
}

/* Ayırıcı çizgi */
.select2-results__option.city-divider {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.25rem;
    padding-bottom: 0.75rem;
}
