/* Import custom onboarding tour styles */
@import "onboarding-tour-gfXh3IE.css";

html {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    font-family:  lato;
    font-weight: 400;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 253, 0.45) rgba(13, 110, 253, 0.10);
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

*::-webkit-scrollbar-track {
    background: rgba(13, 110, 253, 0.08);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.38);
    border-radius: 999px;
    border: 2px solid rgba(13, 110, 253, 0.08);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.55);
}

/* Zones sauvegardées sur la carte */
.saved-zone-boundary {
    transition: all 0.2s ease;
}

.saved-zone-tooltip {
    background-color: #b35165 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    box-shadow: 0 2px 8px rgba(255, 0, 102, 0.3) !important;
}

.saved-zone-tooltip::before {
    border-top-color: #b35165 !important;
}

.saved-zone-popup h6 {
    color: #b35165;
    font-weight: 600;
}

#containerPublic {
    min-height:100vh;
}

.toggle-password{
    background-color: #0000;
    border: none;
    flex-direction: row;
    place-items: center;
    height: 1rem;
    font-size: .875rem;
    line-height: 1.25rem;
    display: flex;
    justify-content: end;
    top: -3.5rem;
    position: relative;
}

.container-scroller {
    overflow: hidden;
}

.page-body-wrapper {
    min-height: calc(100vh - 60px);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
    padding-top: 60px;

    &.full-page-wrapper {
        width: 100%;
        min-height: 100vh;
        padding-top: 0;
    }
}

.main-panel {
    transition: width 0.25s ease, margin 0.25s ease;
    width: calc(100% - 235px);
    min-height: calc(100vh - 60px);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.content-wrapper {
    background: #F5F7FF;
    width: 100%;
    min-height: calc(100vh - 60px);
    -webkit-flex-grow: 1;
    flex-grow: 1;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.footer {
    background: #fff;
    padding: 10px 2.45rem;
    transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -ms-transition: all 0.25s ease;
    font-size: calc(0.875rem - 0.05rem);
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Address Autocomplete */
.address-autocomplete-results {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.address-autocomplete-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.address-autocomplete-item:hover {
    background-color: #f8f9fa;
}

.address-autocomplete-item:active {
    background-color: #9ec8de;
}

/* International Phone Input - Force full width and proper display */
.iti {
    display: block !important;
    width: 100% !important;
}

.iti__input {
    width: 100% !important;
}

/* Ensure the phone input container takes full width */
[data-controller="phone"] {
    display: block !important;
    width: 100% !important;
}

[data-controller="phone"] .iti {
    display: block !important;
    width: 100% !important;
}

/* ===== Dark Mode Styles ===== */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

[data-bs-theme="dark"] .content-wrapper {
    background: #212529;
}

[data-bs-theme="dark"] .footer {
    background: #1a1d20;
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .address-autocomplete-results {
    background: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .address-autocomplete-item:hover {
    background-color: #495057;
}

[data-bs-theme="dark"] .address-autocomplete-item:active {
    background-color: #6c757d;
}

[data-bs-theme="dark"] {
    scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] *::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

/* Theme toggle styling */
.nav-theme-toggle .nav-link {
    cursor: pointer;
    transition: opacity 0.15s ease-in-out;
}

.nav-theme-toggle .nav-link:hover {
    opacity: 0.8;
}

#theme-icon {
    transition: transform 0.3s ease;
}

.nav-theme-toggle .nav-link:hover #theme-icon {
    transform: rotate(15deg);
}

/* Premium badge and upgrade modal styling */
.badge.bg-warning {
    font-weight: 600;
}

#modalUpgradeRequired .modal-content {
    border-radius: 1rem;
}

#modalUpgradeRequired .modal-header {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1.5rem;
}

#modalUpgradeRequired .card {
    transition: transform 0.2s ease-in-out;
}

#modalUpgradeRequired .card:hover {
    transform: translateY(-2px);
}

#modalUpgradeRequired ul li {
    padding: 0.5rem 0;
}

#modalUpgradeRequired .bg-light {
    border: 1px solid rgba(13, 110, 253, 0.1);
}

/* Animation for premium icon */
@keyframes pulse-premium {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.badge .bi-star-fill {
    animation: pulse-premium 2s ease-in-out infinite;
}

/* Search marker animations */
@keyframes markerBounce {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-marker {
    background: transparent !important;
    border: none !important;
}

.etude-deadline {
    min-width: 180px;
}

.etude-deadline-bar {
    height: 10px;
    background: rgba(13, 110, 253, 0.12);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.etude-deadline-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.etude-deadline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 4px;
    color: #6c757d;
}

.etude-deadline.is-ok .etude-deadline-bar {
    background: rgba(25, 135, 84, 0.14);
}

.etude-deadline.is-ok .etude-deadline-fill {
    background: linear-gradient(90deg, rgba(25, 135, 84, 0.85), rgba(25, 135, 84, 0.55));
}

.etude-deadline.is-warning .etude-deadline-bar {
    background: rgba(255, 193, 7, 0.18);
}

.etude-deadline.is-warning .etude-deadline-fill {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.95), rgba(255, 193, 7, 0.55));
}

.etude-deadline.is-danger .etude-deadline-bar {
    background: rgba(220, 53, 69, 0.14);
}

.etude-deadline.is-danger .etude-deadline-fill {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.95), rgba(220, 53, 69, 0.55));
}

.etude-actions-col {
    width: 1%;
    white-space: nowrap;
}

.etude-actions .btn {
    padding: 0.25rem 0.4rem;
    line-height: 1;
}
