body {
    font-family: 'Manrope', sans-serif;
    background-color: #0d0d0f;
}

.neuro-glow {
    background: radial-gradient(circle at 50% 50%, rgba(12, 181, 196, 0.15) 0%, rgba(13, 13, 15, 0) 70%);
}

.glass-card {
    background: rgba(22, 25, 34, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(12, 181, 196, 0.1) 0%, rgba(13, 13, 15, 0) 100%), #0d0d0f;
}

/* Specific fix for the 'iti' phone plugin selected dial code visibility */
.iti__selected-dial-code {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
}

.iti__selected-country {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.input-focus-glow:focus {
    box-shadow: 0 0 0 2px rgba(12, 181, 196, 0.2);
    border-color: #0CB5C4;
}

/* --- Global Harmonization for Form Elements --- */

/* Base Input Styles - FORCED DARK MODE */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.iti input,
.iti__search-input {
    background-color: #161922 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
}

/* Specific fix for the 'iti' phone plugin */
.iti {
    width: 100%;
}

/* Specific fix for the 'iti' phone plugin search input */
.iti__search-input {
    margin: 5px !important;
    width: calc(100% - 10px) !important;
    padding: 8px !important;
    border-radius: 6px !important;
}

/* Standard Placeholder */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

/* Focus State */
input:focus,
select:focus,
textarea:focus,
.iti__search-input:focus {
    border-color: #0CB5C4 !important;
    box-shadow: 0 0 0 4px rgba(12, 181, 196, 0.15) !important;
    background-color: #1a1e29 !important;
    outline: none !important;
}

/* Fix for Autocomplete/Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #161922 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Premium Button Styling */
button[type="submit"],
.btn-primary {
    background: linear-gradient(135deg, #0CB5C4 0%, #0a94a1 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px -1px rgba(12, 181, 196, 0.4), 0 10px 20px -5px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    font-weight: 800 !important;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

button[type="submit"]:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -1px rgba(12, 181, 196, 0.5), 0 10px 20px -5px rgba(0, 0, 0, 0.4) !important;
    filter: brightness(1.1);
}

button[type="submit"]:active,
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* --- Toast Notification System --- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: rgba(22, 25, 34, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0CB5C4;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-item.show {
    transform: translateX(0);
}

.toast-item.error {
    border-left-color: #ef4444;
}

.toast-item.success {
    border-left-color: #22c55e;
}

.toast-item.info {
    border-left-color: #0CB5C4;
}

.toast-icon {
    font-size: 24px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
}

/* --- Chat Specific Styles --- */
#view-sentia {
    max-height: calc(100vh - 15rem);
}

#chat-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(12, 181, 196, 0.2) transparent;
}

#chat-container::-webkit-scrollbar {
    width: 6px;
}

#chat-container::-webkit-scrollbar-track {
    background: transparent;
}

#chat-container::-webkit-scrollbar-thumb {
    background: rgba(12, 181, 196, 0.2);
    border-radius: 10px;
}

/* --- Loading Animations --- */
@keyframes progressBar {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }

    50% {
        width: 40%;
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

.animate-progressBar {
    animation: progressBar 2s infinite ease-in-out;
}