.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #09742c;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 15px;
    color: #e2e8f0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.country-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.country-selector-btn .arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.country-selector-btn.open .arrow {
    transform: rotate(180deg);
}

#countryEmoji {
    font-size: 20px;
    line-height: 1;
}

#countryPrefix {
    font-weight: 500;
    font-size: 16px;
    color: #28303b;
}

.input_telefono {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 16px 14px 44px !important;
    width: 100%;
    font-size: 16px;
    color: #f1f5f9;
    outline: none;
    box-shadow: none !important;
}

.input_telefono::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.relative.flex-1 {
    position: relative;
    flex: 1;
    min-width: 0;
}

.absolute.inset-y-0.left-0 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.absolute.inset-y-0.left-0 .material-symbols-outlined {
    color: #94a3b8;
    font-size: 20px;
    margin-left: 12px;
}

/* Remove default input styles */
.input_telefono:-webkit-autofill,
.input_telefono:-webkit-autofill:hover,
.input_telefono:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    background: transparent !important;
}

/* Hide number input spinners */
.input_telefono::-webkit-outer-spin-button,
.input_telefono::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input_telefono[type="tel"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Responsive */
@media (max-width: 480px) {
    .country-selector-btn {
        padding: 0 10px;
        font-size: 13px;
    }

    #countryEmoji {
        font-size: 17px;
    }



    .input_telefono {
        padding: 12px 12px 12px 38px !important;
        font-size: 15px;
    }

    .absolute.inset-y-0.left-0 .material-symbols-outlined {
        font-size: 17px;
        margin-left: 10px;
    }
}



.input_glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    transition: all 0.3s ease;
}

.input_glass:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input_glass::placeholder {
    color: #94a3b8;
}







/* ============================================
   LOADING OVERLAY (clases que usan Tailwind)
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.show {
    display: flex;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(26, 138, 63, 0.2);
    border-radius: 50%;
    border-top-color: #1a8a3f;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   INPUT-GLASS ERROR
   ============================================ */
.input-glass-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 28px;
    border-radius: 60px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    max-width: 90%;
    width: auto;
    min-width: 280px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.2px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
    border-left: 5px solid #1a8a3f;
}

.toast-notification.error {
    border-left-color: #e11d2c;
    background: #fff5f5;
    color: #991b1b;
}

.toast-notification.success {
    border-left-color: #10b981;
    background: #f0fdf4;
    color: #065f46;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}


.navbar_dash {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.sidebar-desktop {
    transition: transform 0.25s ease, width 0.25s ease;
}

.sidebar-desktop.open {
    transform: translateX(0) !important;
}

@media (max-width:768px) {
    .desktop-container {
        padding: 1rem !important;
    }

    .sidebar-desktop {
        transform: translateX(-100%);
        position: fixed;
        z-index: 200;
    }


    #header_app {
        padding-left: 0;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

@media (min-width:768px) {

    .sidebar-desktop {
        transform: translateX(0px) !important;

    }

}