/**
 * Italyan Kultur Merkezi - Ana Stil Dosyasi
 * Bootstrap 5 + Ozel Stiller
 */

/* ========================================
   CSS Variables (Light Theme Default)
   ======================================== */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #3d8bfd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;

    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-focus-border: var(--primary-color);
    --input-focus-shadow: rgba(13, 110, 253, 0.25);

    --sidebar-bg: #212529;
    --sidebar-text: #adb5bd;
    --sidebar-active: #ffffff;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.15);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
}

/* ========================================
   Dark Theme
   ======================================== */
[data-bs-theme="dark"] {
    --body-bg: #121212;
    --card-bg: #1e1e1e;
    --card-border: #2d2d2d;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --input-focus-shadow: rgba(61, 139, 253, 0.25);

    --sidebar-bg: #0d0d0d;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

/* ========================================
   Base Styles
   ======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Form Styles
   ======================================== */
.form-control,
.form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
    color: var(--text-primary);
}

.form-floating > label {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-icon-wrapper .form-control {
    padding-left: 2.75rem;
    order: 0;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    color: var(--text-muted);
    z-index: 5;
    transition: color var(--transition-fast);
    pointer-events: none;
}

.input-icon-wrapper .form-control:focus ~ .input-icon {
    color: var(--primary-color);
}

/* Validation feedback fix */
.input-icon-wrapper .invalid-feedback,
.input-icon-wrapper .valid-feedback {
    order: 10;
    width: 100%;
    margin-top: 0.35rem;
    padding-left: 0;
    position: relative !important;
    flex-shrink: 0;
}

.input-icon-wrapper .is-invalid ~ .input-icon {
    color: var(--danger-color);
}

.input-icon-wrapper .is-valid ~ .input-icon {
    color: var(--success-color);
}

/* Custom checkbox */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow);
}

/* ========================================
   Selection Cards (Radio/Checkbox as Cards)
   ======================================== */
.selection-card {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all var(--transition-normal);
    background-color: var(--card-bg);
}

.selection-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.selection-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg,
        rgba(13, 110, 253, 0.05) 0%,
        rgba(13, 110, 253, 0.1) 100%);
}

.selection-card.selected::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    animation: checkPop 0.3s ease;
}

.selection-card input[type="radio"],
.selection-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

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

.selection-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.selection-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Language Flag in Selection Card */
.selection-card .language-flag {
    font-size: 3rem;
    line-height: 1;
    display: block;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

/* ========================================
   Progress Steps
   ======================================== */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 3px;
    background-color: var(--card-border);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 3px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   Loading Overlay
   ======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

[data-bs-theme="dark"] .loading-overlay {
    background: rgba(18, 18, 18, 0.9);
}

/* ========================================
   Tables
   ======================================== */
.table {
    --bs-table-bg: var(--card-bg);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--card-border);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table thead th {
    background-color: var(--body-bg);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom-width: 2px;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* ========================================
   Form Validation Messages
   ======================================== */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--danger-color);
    padding-left: 0.25rem;
    position: relative;
    z-index: 1;
    background: transparent;
    clear: both;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--success-color);
    padding-left: 0.25rem;
    position: relative;
    z-index: 1;
    background: transparent;
    clear: both;
}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .valid-feedback.is-invalid,
.was-validated :invalid ~ .invalid-feedback {
    display: block;
}

.is-valid ~ .valid-feedback,
.was-validated :valid ~ .valid-feedback {
    display: block;
}

/* Form control invalid/valid states */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Icon wrapper icindeki input'lar icin ozel ayar */
.input-icon-wrapper .form-control.is-invalid,
.input-icon-wrapper .form-control.is-valid {
    background-position: right 0.75rem center;
}

/* Phone input wrapper icin ozel ayar */
.phone-input-wrapper {
    display: flex;
    flex-direction: column;
}

.phone-input-wrapper .invalid-feedback,
.phone-input-wrapper .valid-feedback {
    order: 10;
    width: 100%;
    margin-top: 0.35rem;
    position: relative !important;
    flex-shrink: 0;
}

/* Dogum tarihi row icin - desktop'ta absolute, mobilde static */
@media (min-width: 577px) {
    .row .form-control.is-invalid ~ .invalid-feedback {
        position: absolute;
        bottom: -1.5rem;
        left: 0;
    }
}

/* Birth date inputs wrapper */
.birth-date-input.is-invalid {
    border-color: var(--danger-color);
}

.birth-date-input.is-valid {
    border-color: var(--success-color);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #997404;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .form-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .form-steps::before {
        display: none;
    }

    .step {
        flex: 1;
        min-width: 80px;
    }

    .selection-card {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    /* Mobilde kart padding azalt */
    .card-body {
        padding: 1rem !important;
    }

    .card-body.p-4,
    .card-body.p-md-5 {
        padding: 1rem !important;
    }

    /* Mobilde butonlar full genislik */
    .d-flex.justify-content-end .btn,
    .d-flex.justify-content-between .btn {
        flex: 1;
        padding: 1rem 0.75rem;
    }

    .d-flex.justify-content-between {
        gap: 0.75rem;
    }

    /* Buton ikonlari mobilde kucult */
    .btn i {
        font-size: 0.9rem;
    }

    /* Form step navigation - sticky bottom */
    .form-step .d-flex.justify-content-end,
    .form-step .d-flex.justify-content-between {
        position: sticky;
        bottom: 0;
        background: var(--card-bg);
        margin: 0 -1rem -1rem;
        padding: 1rem;
        border-top: 1px solid var(--card-border);
        z-index: 10;
    }

    .form-step .mt-5 {
        margin-top: 2rem !important;
    }

    /* Selection card mobilde daha kompakt */
    .selection-card {
        padding: 0.75rem;
    }

    .selection-card .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .selection-card .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .selection-card i.fs-1 {
        font-size: 2rem !important;
    }

    .selection-card i.fs-2 {
        font-size: 1.5rem !important;
    }

    .selection-card h5 {
        font-size: 0.95rem;
    }

    /* Theme toggle mobilde kucult */
    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    /* Progress steps mobilde daha kompakt */
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    /* Input'lar mobilde */
    .form-control,
    .form-select {
        padding: 0.65rem 0.875rem;
        font-size: 16px; /* iOS zoom engellemek icin */
    }

    .form-control-lg {
        padding: 0.75rem 1rem;
    }

    /* Row gap mobilde azalt */
    .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    /* Mobil Validasyon Mesajlari - Input'a girmemesi icin */
    .invalid-feedback,
    .valid-feedback {
        position: static !important;
        display: none;
        width: 100%;
        margin-top: 0.35rem !important;
        font-size: 0.75rem;
        line-height: 1.3;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        clear: both;
    }

    .invalid-feedback {
        background-color: rgba(220, 53, 69, 0.1);
        color: var(--danger-color);
    }

    .valid-feedback {
        background-color: rgba(25, 135, 84, 0.1);
        color: var(--success-color);
    }

    .is-invalid ~ .invalid-feedback,
    .was-validated :invalid ~ .invalid-feedback {
        display: block !important;
    }

    .is-valid ~ .valid-feedback,
    .was-validated :valid ~ .valid-feedback {
        display: block !important;
    }

    /* Input icon wrapper icinde feedback mesajlari */
    .input-icon-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .input-icon-wrapper .invalid-feedback,
    .input-icon-wrapper .valid-feedback {
        order: 10;
        position: static !important;
        margin-top: 0.35rem !important;
    }

    /* Form grubu icinde feedback mesajlari */
    .mb-3 .invalid-feedback,
    .mb-4 .invalid-feedback,
    .mb-3 .valid-feedback,
    .mb-4 .valid-feedback {
        position: static !important;
        margin-top: 0.35rem !important;
    }

    /* Dogum tarihi alani icin ozel */
    .row .invalid-feedback {
        position: static !important;
        bottom: auto !important;
        margin-top: 0.35rem !important;
    }

    /* Select ve input sonrasi feedback */
    .form-control + .invalid-feedback,
    .form-select + .invalid-feedback,
    .form-control + .valid-feedback,
    .form-select + .valid-feedback {
        position: static !important;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   File Upload Area
   ======================================== */
.upload-area {
    border: 2px dashed var(--input-border);
    border-radius: var(--border-radius-lg);
    background-color: var(--input-bg);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area.drag-over {
    transform: scale(1.01);
}

.upload-area.has-file {
    border-style: solid;
    border-color: var(--success-color);
}

.upload-area.has-error {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.upload-content {
    cursor: pointer;
}

.upload-content i {
    transition: transform var(--transition-normal);
}

.upload-area:hover .upload-content i {
    transform: translateY(-5px);
}

.upload-preview {
    background-color: rgba(25, 135, 84, 0.05);
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: var(--border-radius);
}

.image-preview-container {
    text-align: center;
}

.image-preview-container img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

/* Dark mode upload area */
[data-bs-theme="dark"] .upload-area {
    background-color: var(--card-bg);
}

[data-bs-theme="dark"] .upload-area:hover,
[data-bs-theme="dark"] .upload-area.drag-over {
    background-color: rgba(61, 139, 253, 0.1);
}

[data-bs-theme="dark"] .upload-preview {
    background-color: rgba(25, 135, 84, 0.1);
}

/* ========================================
   Intl Tel Input (Telefon Ulke Kodu)
   ======================================== */
.phone-input-wrapper {
    position: relative;
}

.phone-input-wrapper .iti {
    width: 100%;
}

.phone-input-wrapper .iti__flag-container {
    z-index: 10;
}

.phone-input-wrapper .iti__selected-flag {
    background-color: var(--input-bg);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 0 0.75rem;
    transition: background-color var(--transition-fast);
}

.phone-input-wrapper .iti__selected-flag:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.phone-input-wrapper .iti--separate-dial-code .iti__selected-flag {
    background-color: var(--body-bg);
    border-right: 1px solid var(--input-border);
}

.phone-input-wrapper .iti__selected-dial-code {
    color: var(--text-primary);
    font-weight: 500;
    padding-left: 0.5rem;
}

.phone-input-wrapper .iti__arrow {
    border-top-color: var(--text-secondary);
}

.phone-input-wrapper .iti__arrow--up {
    border-bottom-color: var(--text-secondary);
}

/* Dropdown */
.iti__country-list {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    max-height: 250px;
}

.iti__country {
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.iti__country:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.iti__country.iti__highlight {
    background-color: rgba(13, 110, 253, 0.15);
}

.iti__country-name {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.iti__dial-code {
    color: var(--text-secondary);
}

.iti__divider {
    border-bottom: 1px solid var(--card-border);
    margin: 0.25rem 0;
}

/* Search box (eger varsa) */
.iti__search-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
}

.iti__search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Telefon input stili */
.phone-input-wrapper input.form-control {
    padding-left: 100px !important;
}

.phone-input-wrapper .iti--separate-dial-code input.form-control {
    padding-left: 110px !important;
}

/* Dark mode intl-tel-input */
[data-bs-theme="dark"] .iti__country-list {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

[data-bs-theme="dark"] .iti__country:hover {
    background-color: rgba(61, 139, 253, 0.2);
}

[data-bs-theme="dark"] .iti__country.iti__highlight {
    background-color: rgba(61, 139, 253, 0.25);
}

[data-bs-theme="dark"] .iti--separate-dial-code .iti__selected-flag {
    background-color: var(--input-bg);
}

[data-bs-theme="dark"] .iti__selected-flag:hover {
    background-color: rgba(61, 139, 253, 0.2);
}
