@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('./theme-colors.css');
@import url('./z-indexes.css');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--theme-bg-primary);
    color: var(--theme-font-color);
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Customization */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Display Route Content Area */
#display-route-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Forms & Inputs styling */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    color: var(--theme-font-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    margin-top: 6px;
    margin-bottom: 12px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

button {
    cursor: pointer;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--theme-button-color);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Notifications */
#notification {
    z-index: var(--notification-z-index);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: auto;
    min-width: 320px;
    max-width: 500px;
    left: 50%;
    top: 24px;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--theme-border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translate(-50%, -200%);
}

#notification.show {
    transform: translate(-50%, 0%);
}

#notification .message {
    color: var(--theme-font-color);
    font-weight: 500;
    font-size: 0.95rem;
}

#notification.alert {
    border-left: 4px solid var(--theme-alert-color);
}

#notification button {
    background: transparent;
    padding: 4px;
    margin-left: 12px;
    color: var(--text-secondary);
}

#notification button:hover {
    color: var(--theme-font-color);
    transform: none;
}

section:has(#token) {
    display: none; /* Hide token display from production view */
}