/* Elfaris Emlak - Lacivert + Beyaz tema */

:root {
    --elf-navy: #0d1b3d;
    --elf-navy-2: #142a5c;
    --elf-navy-3: #1e3a8a;
    --elf-accent: #d4af37; /* altın vurgu */
    --elf-bg: #f4f6fa;
    --elf-text: #1a1a1a;
    --elf-muted: #6b7280;
}

html, body {
    height: 100%;
}

body {
    background: var(--elf-bg);
    color: var(--elf-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===================== NAVBAR ===================== */
.elf-navbar {
    background: linear-gradient(135deg, var(--elf-navy) 0%, var(--elf-navy-3) 100%) !important;
    border-bottom: 3px solid var(--elf-accent);
}

.elf-navbar .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.elf-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: 6px;
    transition: all .15s ease-in;
}

.elf-navbar .nav-link:hover,
.elf-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

/* ===================== BUTONLAR ===================== */
.elf-btn-primary {
    background: var(--elf-navy) !important;
    border-color: var(--elf-navy) !important;
    color: #fff !important;
    font-weight: 500;
}

.elf-btn-primary:hover {
    background: var(--elf-navy-3) !important;
    border-color: var(--elf-navy-3) !important;
    color: #fff !important;
}

.btn-primary {
    background: var(--elf-navy) !important;
    border-color: var(--elf-navy) !important;
}

.btn-primary:hover {
    background: var(--elf-navy-3) !important;
    border-color: var(--elf-navy-3) !important;
}

.elf-bg-primary {
    background: var(--elf-navy) !important;
    color: #fff !important;
}

/* ===================== STAT KARTLARI ===================== */
.elf-stat-card {
    border-radius: 10px;
    transition: transform .15s ease-in;
}

.elf-stat-card:hover {
    transform: translateY(-2px);
}

.elf-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
}

.elf-stat-label {
    font-size: 0.8rem;
    color: var(--elf-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elf-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--elf-navy);
    line-height: 1;
}

/* ===================== UYUM YÜZDESİ ===================== */
.elf-uyum-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===================== KARTLAR / TABLOLAR ===================== */
.card {
    border-radius: 10px;
}

.table > :not(caption) > * > * {
    padding: 0.6rem 0.75rem;
}

.table thead.table-light th {
    background-color: #eef1f6 !important;
    color: var(--elf-navy);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.badge {
    font-weight: 500;
}

.bg-success-subtle {
    background-color: #d1f4e0 !important;
}

/* ===================== LOGIN ===================== */
.elf-login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--elf-navy) 0%, var(--elf-navy-3) 50%, #2c4ea8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.elf-login-wrapper {
    width: 100%;
    max-width: 420px;
}

.elf-login-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.elf-logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--elf-navy), var(--elf-navy-3));
    color: var(--elf-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.elf-brand {
    color: var(--elf-navy);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===================== FORM ===================== */
.form-label {
    font-weight: 500;
    color: var(--elf-navy);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--elf-navy-3);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* ===================== TABS ===================== */
.nav-tabs .nav-link {
    color: var(--elf-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--elf-navy);
    background: transparent;
    border-bottom: 2px solid var(--elf-navy);
}

/* ===================== PAGINATION ===================== */
.page-link {
    color: var(--elf-navy);
}

.page-item.active .page-link {
    background: var(--elf-navy);
    border-color: var(--elf-navy);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .elf-stat-value { font-size: 1.4rem; }
    .elf-stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    main.container-fluid { padding: 1rem !important; }
}

/* Mülk listesinde foto thumb sırası */
.elf-thumb-row {
    display: flex;
    gap: 3px;
    align-items: center;
}

.elf-thumb-mini {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.elf-thumb-empty {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: #f0f1f5;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #dee2e6;
}

/* Düzenleme ekranındaki yüklenmiş foto thumbnail */
.elf-foto-tumb {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.elf-foto-tumb img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* İlçe çoklu seçim checkbox listesi */
.elf-ilce-listesi {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fb;
    min-height: 60px;
}

.elf-ilce-cb {
    margin-right: 10px;
    margin-bottom: 6px;
}

.elf-ilce-cb .form-check-label {
    cursor: pointer;
    user-select: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.elf-ilce-cb input:checked ~ .form-check-label {
    background: var(--elf-navy, #0d1b3d);
    color: #fff;
}

/* Sahip arama dropdown - input altında popup */
.elf-sahip-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    width: calc(100% - 1.5rem);
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    margin-top: 2px;
}

.elf-sahip-dropdown.show {
    display: block;
}

.elf-sahip-dropdown a:hover,
.elf-sahip-dropdown a:focus {
    background-color: #eef1f6;
    text-decoration: none;
}

/* Autocomplete dropdown (mahalle vb.) - sahip ile aynı stil */
.elf-autocomplete-dropdown {
    display: none;
    position: absolute;
    z-index: 1050;
    width: calc(100% - 1.5rem);
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    margin-top: 2px;
    border: 1px solid #dee2e6;
}

.elf-autocomplete-dropdown.show {
    display: block;
}

.elf-autocomplete-dropdown a:hover,
.elf-autocomplete-dropdown a:focus {
    background-color: #eef1f6;
    text-decoration: none;
}

/* Form switch - özel stil (lacivert) */
.form-switch .form-check-input:checked {
    background-color: var(--elf-navy) !important;
    border-color: var(--elf-navy) !important;
}

.form-switch .form-check-input {
    height: 1.4rem;
    width: 2.6rem;
    cursor: pointer;
}

.form-check-label {
    user-select: none;
    cursor: pointer;
}
