@import url("locale-selector.css");
@import url("dropdown-menu/dropdown-menu.css");

/* Shared toolbar and menu styles */
.valo-toolbox-wrapper {
    position: fixed;
    top: 8px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.valo-toolbox-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.valo-toolbox-link img {
    height: 45px;
    width: auto;
    display: block;
}

.valo-tagline {
    text-align: center;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
}

.valo-tagline-line {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: -0.02em;
}

.valo-tagline-subtext {
    font-size: 0.7rem;
    font-weight: 500;
    color: #000000;
}

.valo-tagline-tools {
    color: #0017e2;
}

.valo-tagline-results {
    color: #af7d00;
}

html.dark .valo-tagline-tools,
html.dark .valo-tagline-results,
html.dark .valo-tagline-subtext,
.dark .valo-tagline-tools,
.dark .valo-tagline-results,
.dark .valo-tagline-subtext {
    color: #ffffff;
}

.toolbar-button, .dropdown-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
}

.dark .toolbar-button, .dark .dropdown-button {
    color: white;
}

.toolbar-button:hover, .dropdown-button:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.dark .toolbar-button:hover, .dark .dropdown-button:hover {
    background: #1a1a1a;
    color: #DC2626;
}

.toolbar-button:disabled {
    cursor: not-allowed;
    color: #9ca3af !important;
    background: transparent !important;
}

.dark .toolbar-button:disabled {
    color: #6b7280 !important;
}

.toolbar-button.icon-only {
    width: 40px;
    padding: 0;
}

.toggle-avatar-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto !important;
    padding: 0 4px !important;
    background: transparent !important;
    border: none !important;
}

.toggle-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: #1a2236;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.toggle-avatar-circle.hidden {
    display: none;
}

.toggle-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    object-fit: cover;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.toggle-avatar-img.hidden {
    display: none;
}

.toggle-avatar-caret {
    color: #6b7280;
    flex-shrink: 0;
}

.dark .toggle-avatar-caret {
    color: #9ca3af;
}

.toolbar-button.active, .dropdown-button.active {
    background: #FEE2E2;
    color: #7F1D1D;
    border-color: #DC2626;
}

.dark .toolbar-button.active, .dark .dropdown-button.active {
    background: #7F1D1D;
    color: #FEE2E2;
    border-color: #DC2626;
}

.main-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 50;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.dark .main-toolbar {
    background: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-divider {
    width: 1px;
    height: 64px;
    background: #e5e7eb;
}

.dark .toolbar-divider {
    background: #4b5563;
}

.toolbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.nav-group-left {
    display: flex;
    align-items: center;
    gap: 40px;
    pointer-events: auto;
}

.nav-group-right {
    display: flex;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
}

.toolbar-nav-link {
    padding: 8px 12px;
    height: auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.toolbar-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background-color: #dc2626;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.toolbar-nav-link:hover {
    color: #111827;
}

.toolbar-nav-link:hover::after {
    width: 80%;
    opacity: 1;
}

.dark .toolbar-nav-link {
    color: #e5e7eb;
}

.dark .toolbar-nav-link:hover {
    color: #fff;
}

.toolbar-nav-link:disabled {
    cursor: default;
    opacity: 0.5;
}

.toolbar-nav-link:disabled:hover::after {
    width: 0;
    opacity: 0;
}

.toolbar-nav-signin {
    padding: 10px 24px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.toolbar-nav-signin:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.dark .toolbar-nav-signin {
    background: rgba(30, 41, 59, 0.8);
    border-color: #334155;
    color: #f1f5f9;
}

.dark .toolbar-nav-signin:hover {
    background: #1e293b;
    border-color: #475569;
}

.toolbar-nav-cta {
    padding: 10px 28px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2), 0 2px 4px -1px rgba(220, 38, 38, 0.1);
    position: relative;
    overflow: hidden;
}

.toolbar-nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.toolbar-nav-cta:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.4), 0 4px 6px -2px rgba(220, 38, 38, 0.2);
    filter: brightness(1.1);
}

.toolbar-nav-cta:hover::before {
    opacity: 1;
}

.dark .toolbar-nav-cta {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.relative {
    position: relative;
}
