:root {
    --bg-color: #0f1020;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --primary-color: #0d6efd;
    --glass-blur: 16px;
    --font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(13, 110, 253, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(200, 50, 255, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-control {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    padding: 12px 16px;
    border-radius: 10px;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control-color {
    padding: 8px;
    height: 50px;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Code Block */
pre {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glass Badge */
.glass-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* Very transparent initially */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    /* Faded text */
    padding: 0 10px;
    height: 22px;
    /* Fixed height for alignment */
    font-size: 11px;
    font-weight: 600;
    border-radius: 99px;
    /* Pill shape */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    user-select: none;
    letter-spacing: 0.5px;
}

.glass-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    /* More visible on hover */
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Three Dots Loading Animation */
.dots-loader {
    display: inline-flex;
    align-items: center;
    height: 20px;
}

.dots-loader span {
    width: 6px;
    height: 6px;
    margin: 0 3px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.dots-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom Select Styling */
.form-select {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-size: 14px 14px !important;
    background-position: right 1rem center !important;
}

.form-select:focus {
    background-color: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
    border-color: var(--primary-color) !important;
}

.form-select option {
    background-color: #1a1b3a;
    /* Deep dark background for the menu */
    color: white;
    padding: 10px;
}

/* Glass Select (Small) */
.select-glass {
    background-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600;
    border-radius: 99px;
    padding: 2px 24px 2px 12px !important;
    height: 26px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 10px !important;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.select-glass:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.select-glass:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Fix for the white dropdown box issue */
.select-glass option {
    background-color: #1a1b3a !important;
    /* Matches our dark theme */
    color: #ffffff !important;
    padding: 10px !important;
}

/* Forcing Chrome/Edge menu background */
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #1a1b3a inset;
    transition: background-color 5000s ease-in-out 0s;
}