@font-face {
    font-family: 'aile-etnic';
    src: url('../fonts/UniqueAile-Etnik.otf');
}

@font-face {
    font-family: 'aile-sade';
    src: url('../fonts/UniqueAile-Sade.otf');
}


.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    font-family: 'aile-etnic';
    text-transform: uppercase;
    color: brown;
}

.navbar-brand:hover {
    text-decoration: none;
    color: brown;
    /* Sarı ışık tonu */
    box-shadow:
        0 0 8px rgba(255, 223, 0, 0.8),
        /* Yayılmış ışık */
        0 0 20px rgba(255, 223, 0, 0.6);
    /* Dıştaki hafif ışık halesi */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2rem;
    text-decoration-color: #ffd700;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01rem;
    font-family: 'aile-sade';
    text-transform: uppercase;
    transition: color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2rem;
    text-decoration-color: #000;
    box-shadow: inset 0 0.2em 0 0 #000;
}

.nav-link:hover {
    text-decoration: none;
    color: brown;
    /* Sarı ışık tonu */
    box-shadow:
        0 0 8px rgba(255, 224, 0, 0.8),
        /* Yayılmış ışık */
        0 0 20px rgba(255, 224, 0, 0.6);
    /* Dıştaki hafif ışık halesi */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2rem;
    text-decoration-color: #ffd700;
}

.navbar .d-flex .nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    font-family: 'aile-sade';
    text-transform: uppercase;
    margin: auto;
}

.navbar .d-flex .nav-link:first-child {
    margin-left: 2rem;
}

.navbar .d-flex .nav-link:last-child {
    margin-right: 2rem;
}

.navbar-nav {
    align-items: center;
}

.navbar .navbar-nav .nav-link {
    font-size: 1.1em;
    padding: 0.5em 1em;
}

@media screen and (min-width: 768px) {
    .navbar-brand {
        margin-right: 0;
        padding: 0 1em;
    }
}


body {
    background-color: ghostwhite;
    color: black;
}

.dark-mode {
    background-color: #333;
    color: gray;
}

#dynamic-content {
    border-radius: 5px;
    position: relative;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 100px;
    overflow-y: scroll;
}

.notificationButton {
    background-color: brown;
    margin-right: 10px;
}

.notificationButton i {
    color: white;
}

.notificationButton:hover {
    background-color: #ffcccb;
}

.notificationButton:hover i {
    color: brown;
}

/* SweetAlert Theme Customization */
.swal2-popup {
    border-radius: 16px;
    border: 1px solid rgba(205, 133, 63, 0.2);
    padding: 1.5rem;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--light-text-secondary);
}

.swal2-title {
    color: #6B4226;
    font-weight: 600;
}

.swal2-html-container {
    color: var(--light-text-secondary);
}

.swal2-confirm {
    background-color: var(--brand-secondary) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    background-color: #6B4226 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 69, 19, 0.4) !important;
}

.swal2-cancel {
    background-color: #f5e9dd !important;
    color: #6B4226 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(139, 69, 19, 0.2) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    background-color: #fff !important;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2) !important;
    transform: translateY(-2px);
}

.swal2-icon.swal2-warning {}

.swal2-icon.swal2-error {}

.swal2-icon.swal2-success {}

.swal2-icon.swal2-info {}

.swal2-icon.swal2-question {
    border-color: var(--light-text-secondary) !important;
    color: var(--light-text-secondary) !important;
}

/* QR Popup Theme */
.swal2-popup.qr-popup {
    background: #f9f3ee;
    border-radius: 16px;
    max-width: 400px;
    width: auto;
    padding: 20px;
    border: 1px solid rgba(205, 133, 63, 0.3);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .swal2-popup {
        background-color: var(--dark-background);
        color: #e0cbba;
        border: 1px solid rgba(139, 69, 19, 0.3);
    }

    .swal2-title {
        color: white;
    }

    .swal2-html-container {
        color: #e0cbba;
    }

    .swal2-confirm {
        background-color: var(--primary-500) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .swal2-confirm:hover {
        background-color: #DEB887 !important;
        color: var(--light-surface) !important;
    }

    .swal2-cancel {
        background-color: var(--light-surface) !important;
        color: var(--light-text) !important;
        border: 1px solid rgba(205, 133, 63, 0.3) !important;
    }

    .swal2-cancel:hover {
        background-color: var(--primary-600) !important;
    }

    .swal2-popup.qr-popup {
        background: var(--dark-background);
    }
}

/* Mobil cihazlar için Shepherd Responsive Düzenlemeler */

/* Temel responsive ayarlar */
@media screen and (max-width: 768px) {
    .shepherd-element {
        max-width: 280px !important;
        min-width: 200px !important;
        font-size: 14px !important;
    }

    .shepherd-title {
        font-size: 16px !important;
    }

    .shepherd-text {
        padding: 12px !important;
        font-size: 14px !important;
    }

    .shepherd-header {
        padding: 8px 12px !important;
    }

    .shepherd-footer {
        padding: 8px 12px !important;
    }

    .shepherd-button {
        padding: 6px 10px !important;
        font-size: 12px !important;
        margin-left: 5px !important;
    }
}

/* Küçük mobil cihazlar için ek düzenlemeler */
@media screen and (max-width: 480px) {
    .shepherd-element {
        max-width: 250px !important;
        min-width: 180px !important;
        font-size: 13px !important;
    }

    .shepherd-title {
        font-size: 15px !important;
    }

    .shepherd-text {
        padding: 10px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .shepherd-header {
        padding: 6px 10px !important;
    }

    .shepherd-footer {
        padding: 6px 10px !important;
    }

    .shepherd-button {
        padding: 5px 8px !important;
        font-size: 11px !important;
        margin-left: 4px !important;
    }

    /* Konumlandırmayı iyileştirecek ayarlar */
    .shepherd-element[data-popper-placement^='top'] {
        margin-bottom: 8px !important;
    }

    .shepherd-element[data-popper-placement^='bottom'] {
        margin-top: 8px !important;
    }

    .shepherd-element[data-popper-placement^='left'] {
        margin-right: 8px !important;
    }

    .shepherd-element[data-popper-placement^='right'] {
        margin-left: 8px !important;
    }
}

/* Özel konum düzeltmeleri için */
@media screen and (max-width: 480px) {

    /* Tamagotchi için tur butonlarının doğru yerleşimi */
    .shepherd-element[data-shepherd-step-id="tamagotchi-controls"],
    .shepherd-element[data-shepherd-step-id="feed-button"],
    .shepherd-element[data-shepherd-step-id="play-button"],
    .shepherd-element[data-shepherd-step-id="heal-button"],
    .shepherd-element[data-shepherd-step-id="sleep-button"],
    .shepherd-element[data-shepherd-step-id="candy-button"],
    .shepherd-element[data-shepherd-step-id="poop-button"] {}

    /* SmartChain için tur butonlarının doğru yerleşimi */
    .shepherd-element[data-shepherd-step-id="day-timeline"],
    .shepherd-element[data-shepherd-step-id="timeline-sections"],
    .shepherd-element[data-shepherd-step-id="hour-marker"],
    .shepherd-element[data-shepherd-step-id="timeline-event"] {}
}

/* Shepherd modalı arkasındaki overlay dokunuş desteği */
.shepherd-modal-overlay-container {
    touch-action: none;
}

/* Tur butonları mobil düzenlemesi */
@media screen and (max-width: 768px) {

    #start-tour,
    #start-smartchain-tour,
    #start-tamagotchi-tour {
        width: 50px;
        height: 50px;
    }

    #start-tour i,
    #start-smartchain-tour i,
    #start-tamagotchi-tour i {
        font-size: 20px;
    }

    #start-smartchain-tour {
        bottom: 120px;
    }

    #start-tamagotchi-tour {
        bottom: 180px;
    }
}

@media screen and (max-width: 480px) {

    #start-tour,
    #start-smartchain-tour,
    #start-tamagotchi-tour {
        width: 44px;
        height: 44px;
        right: 15px;
    }

    #start-tour i,
    #start-smartchain-tour i,
    #start-tamagotchi-tour i {
        font-size: 18px;
    }
}

* Shepherd tour customization for AILE Frontend */

/* Tour container */
.shepherd-element {
    max-width: 350px;
    color: #6B4226;
    background-color: #f9f3ee;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 63, 0.3);
}

/* Tour header */
.shepherd-header {
    background-color: #f5e9dd;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    padding: 15px 18px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.shepherd-title {
    font-weight: bold;
    color: var(--brand-secondary);
    font-size: 20px;
}

.shepherd-cancel-icon {
    color: var(--brand-secondary);
    transition: all 0.3s;
    opacity: 0.7;
}

.shepherd-cancel-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Tour content */
.shepherd-text {
    padding: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--light-text-secondary);
}

/* Tour footer */
.shepherd-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    display: flex;
    justify-content: space-between;
}

/* Tour buttons */
.shepherd-button {
    background-color: var(--brand-secondary) !important;
    border: none;
    color: white !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shepherd-button:hover {
    background-color: #6B4226 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.shepherd-button-secondary {
    background-color: #f5e9dd !important;
    color: #6B4226 !important;
    border: 1px solid var(--primary-500);
}

.shepherd-button-secondary:hover {
    background-color: #e0cbba !important;
}

/* Tour arrow */
.shepherd-arrow {
    color: #f9f3ee;
}

.shepherd-arrow:before {
    border-color: rgba(205, 133, 63, 0.3);
}

/* Tour overlay */
.shepherd-modal-overlay-container.shepherd-modal-is-visible {
    opacity: 0.7;
    background-color: rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(2px);
}

/* Tour highlight */
.shepherd-element[data-popper-placement^='top'] .shepherd-arrow:before {
    border-top-color: #f9f3ee;
}

.shepherd-element[data-popper-placement^='bottom'] .shepherd-arrow:before {
    border-bottom-color: #f9f3ee;
}

.shepherd-element[data-popper-placement^='left'] .shepherd-arrow:before {
    border-left-color: #f9f3ee;
}

.shepherd-element[data-popper-placement^='right'] .shepherd-arrow:before {
    border-right-color: #f9f3ee;
}

/* Start tour button */
#start-tour {
    background-color: var(--brand-secondary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.4);
    transition: all 0.3s;
}

#start-tour:hover {
    background-color: #6B4226;
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.5);
}

#start-tour i {
    font-size: 24px;
}

/* Dark mode styling */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        .shepherd-element {
            background-color: var(--dark-background);
            color: #e0cbba;
            border: 1px solid rgba(139, 69, 19, 0.5);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        }

        .shepherd-header {
            background-color: var(--light-surface);
            border-bottom: 2px solid rgba(205, 133, 63, 0.3);
        }

        .shepherd-title {
            color: var(--primary-500);
        }

        .shepherd-cancel-icon {
            color: var(--primary-500);
        }

        .shepherd-text {
            color: #e0cbba;
        }

        .shepherd-footer {
            border-top: 1px solid rgba(205, 133, 63, 0.3);
        }

        .shepherd-button {
            background-color: #6B4226 !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        }

        .shepherd-button:hover {
            background-color: var(--brand-secondary) !important;
        }

        .shepherd-button-secondary {
            background-color: var(--light-surface) !important;
            color: #e0cbba !important;
            border: 1px solid var(--light-text-secondary);
        }

        .shepherd-button-secondary:hover {
            background-color: var(--primary-600) !important;
        }

        .shepherd-arrow {
            color: var(--dark-background);
        }

        .shepherd-element[data-popper-placement^='top'] .shepherd-arrow:before {
            border-top-color: var(--dark-background);
        }

        .shepherd-element[data-popper-placement^='bottom'] .shepherd-arrow:before {
            border-bottom-color: var(--dark-background);
        }

        .shepherd-element[data-popper-placement^='left'] .shepherd-arrow:before {
            border-left-color: var(--dark-background);
        }

        .shepherd-element[data-popper-placement^='right'] .shepherd-arrow:before {
            border-right-color: var(--dark-background);
        }

        .shepherd-modal-overlay-container.shepherd-modal-is-visible {
            background-color: rgba(0, 0, 0, 0.6);
        }

        #start-tour {
            background-color: #6B4226;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        #start-tour:hover {
            background-color: var(--brand-secondary);
        }
    }
}

/* Tour butonları için ayırıcı */
.tour-divider {
    padding: 8px 16px;
    margin-top: 8px;
    color: var(--brand-secondary);
    font-weight: bold;
    font-size: 0.9em;
    border-top: 1px dashed rgba(139, 69, 19, 0.3);
    text-align: center;
}

/* Hover efekti ve özel simgeler */
.floatingMenu li a[data-action^="start-"] {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.floatingMenu li a[data-action^="start-"]:hover {
    background-color: rgba(139, 69, 19, 0.1);
    transform: translateX(5px);
}

.floatingMenu li a[data-action^="start-"] i {
    transition: transform 0.3s ease;
}

.floatingMenu li a[data-action^="start-"]:hover i {
    transform: rotate(15deg);
}

/* Dark mode ayarları */
.dark-mode .tour-divider {
    color: var(--primary-500);
    border-top: 1px dashed rgba(205, 133, 63, 0.3);
}

.dark-mode .floatingMenu li a[data-action^="start-"]:hover {
    background-color: rgba(205, 133, 63, 0.15);
}

/* Bildirim buton durumları */

/* Normal durum (bildirimler kapalı) */
.sc-action-link i.fa-bell {
    color: #999;
}

/* Başka cihazlarda aktif */
.sc-action-link.subscribed:not(.active-device) i.fa-bell {
    color: #fbae57;
}

/* Bu cihazda aktif */
.sc-action-link.subscribed.active-device i.fa-bell-slash {
    color: #1abc9c;
}

/* İzin gerekli durumu */
.sc-action-link.permission-needed i.fa-bell {
    color: #e74c3c;
}

/* Aktif cihaz vurgusu */
.sc-action-link.active-device::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1abc9c;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.7);
}

/* Devre dışı buton */
.sc-action-link.disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}


/* Diğer CSS içeriğini koruyun ve sadece bu kısımları güncelleyin */

body {
    background-color: var(--bg-page);
    color: var(--light-text);
}

.dark-mode {
    background-color: var(--bg-page);
    color: var(--light-text);
}

/* Başlık stilleri */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--light-text-secondary);
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 0.5rem;
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--light-text);
}

/* Link stilleri */
a {
    color: var(--primary);
}

a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* Buton stilleri */
.btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
}

.btn:hover {
    background-color: var(--button-hover-bg);
}

/* SweetAlert stilleri güncelleme */
.swal2-popup {
    background-color: var(--bg-card);
    color: var(--light-text);
}

.swal2-title {
    color: var(--light-text);
}

.swal2-html-container {
    color: var(--light-text);
}

.swal2-confirm {
    background-color: var(--button-bg) !important;
    color: var(--button-text) !important;
}

.swal2-confirm:hover {
    background-color: var(--button-hover-bg) !important;
}

.swal2-cancel {
    background-color: var(--bg-accent) !important;
    color: var(--light-text) !important;
}

/* Bildirim butonu */
.notificationButton {
    background-color: var(--accent);
    margin-right: 10px;
}

.notificationButton i {
    color: var(--button-text);
}

.notificationButton:hover {
    background-color: var(--button-hover-bg);
}

.notificationButton:hover i {
    color: var(--button-text);
}

/** Swal2 stilleri güncelleme */

.swal2-popup {
    background-color: var(--bg-card) !important;
    background: var(--primary-500) !important;
    color: var(--light-text) !important;
}

.swal2-icon.swal2-info {
    color: var(--primary-400) !important;
}

.swal2-container {
}

.settings-select {
    width: 160px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(205, 133, 63, 0.4);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--light-text-secondary);
    font-family: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B4513' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    cursor: pointer;
}

.theme-preview {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.preview-box {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* Improved phone input container */
.iti {
    width: 100%;
    position: relative;
    display: block;
}

.iti input[type="tel"] {
    width: 100%;
    padding-right: 50px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 0.75rem 0.75rem 52px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Improve focus styles */
.iti input[type="tel"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Better error states */
.iti input[type="tel"].error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5;
}

.iti input[type="tel"].valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    background-color: #f8fff8;
}

/* Error message styling - prevent layout breaking */
.phone-error-msg {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    word-wrap: break-word;
    line-height: 1.3;
    min-height: 1.1rem;
    /* Prevent layout shift */
}

/* Success message styling */
.phone-success-msg {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
}

/* Container for phone input to prevent layout issues */
.phone-input-container {
    position: relative;
    margin-bottom: 1.5rem;
    /* Space for error messages */
}

/* Ensure the country dropdown doesn't interfere */
.iti__country-list {
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.iti__country-list .iti__country {
    padding: 8px 12px;
}

.iti__country-list .iti__country:hover {
    background-color: #f8f9fa;
}

/* Flag container styling */
.iti__flag-container {
    padding: 0.75rem 0.5rem;
}

/* Prevent text selection issues */
.iti__selected-flag {
    user-select: none;
    outline: none;
}

/* Animation for error messages - smooth transition */
.phone-error-msg {
    animation: fadeInError 0.3s ease-in;
    opacity: 1;
    transform: translateY(0);
}

.phone-success-msg {
    animation: fadeInSuccess 0.3s ease-in;
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Better mobile experience */
@media (max-width: 768px) {
    .iti input[type="tel"] {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 0.75rem 0.75rem 0.75rem 50px;
    }

    .phone-error-msg,
    .phone-success-msg {
        font-size: 0.8rem;
    }

    .iti__flag-container {
        padding: 0.75rem 0.4rem;
    }
}

/* Dark mode support */
.dark-mode .iti input[type="tel"] {
    background-color: var(--bg-card);
    color: var(--light-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .iti input[type="tel"]:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(205, 133, 63, 0.25);
}

.dark-mode .iti input[type="tel"].error {
    background-color: rgba(220, 53, 69, 0.1);
}

.dark-mode .iti input[type="tel"].valid {
    background-color: rgba(40, 167, 69, 0.1);
}

.dark-mode .iti__country-list {
    background-color: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .iti__country-list .iti__country:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.phone-input-container {
    position: relative;
}

.phone-input-container .iti {
    width: 100%;
    display: block;
}

.phone-input-container .iti .iti__tel-input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Ensure no overlapping flags */
.iti__flag-container {
    z-index: 10;
}

.swal2-container {
    z-index: 10000 !important;
    /* Higher than ailebar's z-index: 9999 */
}

.swal2-popup {
    z-index: 10001 !important;
    position: relative;
}

/* Ensure SweetAlert backdrop is properly layered */
.swal2-backdrop-show {
    z-index: 10000 !important;
}

/* Fix for any nested modals or overlays within SweetAlert */
.swal2-popup .todo-detail-popup,
.swal2-popup .mobile-swal-popup {
    z-index: inherit;
}

/* Additional fix for mobile SweetAlert containers */
.mobile-swal-container {
    z-index: 10000 !important;
}

/* Ensure no other elements interfere with SweetAlert */
.swal2-overlay {
    z-index: 10000 !important;
}

/* Fix for any custom SweetAlert classes that might have lower z-index */
.todo-detail-popup,
.qr-popup,
.aile-tour-step {
    z-index: 10001 !important;
}


/* Mobile SweetAlert Scroll Fixes */
@media (max-width: 768px) {
  /* Prevent iOS bounce scroll in modals */
  .swal2-container {
    position: fixed !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Fix for content that's too tall */
  .swal2-popup {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .swal2-header {
    flex-shrink: 0 !important;
  }
  
  .swal2-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .swal2-actions {
    flex-shrink: 0 !important;
  }
}