/* Panel overrides loaded on every page without depending on Vite build */

/* === GLOBAL SWEETALERT TOASTS === */
.swal2-container {
    z-index: 20000 !important;
}

.swal-toast {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-inline-start: 4px solid var(--theme-default, #1bbf72);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    min-width: 260px;
}

.swal-toast__title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--body-font-color, #111827);
}

.swal-toast__body {
    font-size: 0.82rem;
    color: var(--gray-600, #6b7280);
}

.swal-toast .swal2-timer-progress-bar-container {
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 0.4rem;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(27, 191, 114, 0.15);
}

.swal-toast .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #1bbf72, #0b8f55);
    height: 100%;
}

.swal-toast--success {
    border-color: var(--success-color, #22c55e);
}

.swal-toast--error {
    border-color: var(--danger-color, #ef4444);
}

.swal-toast--warning {
    border-color: var(--warning-color, #f59e0b);
}

.swal-toast--info {
    border-color: var(--theme-default, #1bbf72);
}

.swal-temp-password .swal2-title {
    font-size: 1.05rem;
    color: var(--body-font-color, #111827);
}

.swal-temp-password .swal-temp-pass input {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
}

/* === TYPEAHEAD LOADER (ONDINHAS) === */
.Typeahead-spinner {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.Typeahead-spinner--wave {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: 64px;
    height: 28px;
}

.Typeahead-spinner--wave span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(27, 191, 114, 0.25);
    animation: waveUp 1.9s ease-in-out infinite, smallExtend 1.9s ease-in-out infinite;
}

.Typeahead-spinner--wave span:nth-child(2),
.Typeahead-spinner--wave span:nth-child(4) {
    animation-name: waveUp, largeExtend;
}

.Typeahead-spinner--wave span:nth-child(2) { animation-delay: .12s; }
.Typeahead-spinner--wave span:nth-child(3) { animation-delay: .24s; }
.Typeahead-spinner--wave span:nth-child(4) { animation-delay: .36s; }
.Typeahead-spinner--wave span:nth-child(5) { animation-delay: .48s; }

@keyframes waveUp {
    0%, 18% { transform: translateY(0); }
    45%, 65% { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

@keyframes smallExtend {
    0%, 12% { height: 6px; background-color: rgba(27, 191, 114, 0.3); }
    30%, 54% { height: 22px; background-color: #1bbf72; }
    100% { height: 6px; background-color: rgba(27, 191, 114, 0.3); }
}

@keyframes largeExtend {
    0%, 12% { height: 6px; background-color: rgba(27, 191, 114, 0.35); }
    30%, 54% { height: 28px; background-color: #1bbf72; }
    100% { height: 6px; background-color: rgba(27, 191, 114, 0.35); }
}

/* === HEADER DROPDOWNS === */
.page-header .custom-dropdown .custom-menu li a,
.organization-selector__item {
    transition: background-color .2s ease, color .2s ease;
}

.page-header .custom-dropdown .custom-menu li,
.page-header .custom-dropdown .custom-menu li:hover {
    background: transparent !important;
}

.page-header .custom-dropdown .custom-menu li a:hover,
.page-header .custom-dropdown .custom-menu li button:hover,
.organization-selector__item:hover {
    background: rgba(27, 191, 114, 0.12) !important;
    color: var(--theme-default, #1bbf72) !important;
}

.organization-selector__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 0.35rem;
    background: transparent;
}

.organization-selector__item-text {
    min-width: 0;
}

.organization-selector__meta {
    white-space: nowrap;
}

.organization-selector__badge {
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border: 1px solid rgba(27, 191, 114, 0.6) !important;
    background: rgba(27, 191, 114, 0.2) !important;
    color: #0a6b3d !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
}

.organization-selector__item.active {
    background: rgba(27, 191, 114, 0.16) !important;
    color: var(--theme-default, #1bbf72);
}

.organization-selector__item.active .organization-selector__badge,
.organization-selector__badge.active {
    background: var(--theme-default, #1bbf72) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* === LANGUAGE DROPDOWN FLAG SPACE === */
.language-menu .lang:hover {
    background: rgba(27, 191, 114, 0.12) !important;
    color: var(--theme-default, #1bbf72) !important;
}
