@font-face {
    font-family: 'AulaCNova';
    src: url('../fonts/AulaCNova.ttf?v=1') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #2563eb;
    /* Indigo 500 */
    --primary-hover: #4f46e5;
    /* Indigo 600 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --background: #f8fafc;
    /* Slate 50 */
    --surface: #ffffff;
    --text-main: #1e293b;
    /* Slate 800 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --danger: #ef4444;
    --success: #22c55e;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overscroll-behavior-x: none;
}

html {
    overscroll-behavior-x: none;
}

/* Glassmorphism Logic */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.2;
    vertical-align: middle;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: none !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-premium {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #15803d !important;
}

.btn-premium:hover {
    background: #15803d !important;
    color: white !important;
    transform: none !important;
}

.active-lang {
    background: var(--primary-color);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    /* transition: transform 0.2s; REMOVED per user request */
}

.card:hover {
    /* transform: translateY(-4px); REMOVED per user request */
    box-shadow: var(--shadow-lg);
}

.question-card {
    background: var(--surface);
    border: 1px solid #e2e8f0;
    /* Added explicit border */
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}


.question-card:hover {
    box-shadow: var(--shadow-lg) !important;
    /* No transform to avoid movement */
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

#user-menu-btn {
    border-radius: 0.75rem !important;
    /* Pill shape */
    padding: 0.5rem 1rem !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0 !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#user-menu-btn:hover,
.dropdown.active #user-menu-btn {
    background-color: white !important;
    box-shadow: none !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 240px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    z-index: 1000;
    transform-origin: top right;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0.5rem;
    /* Add horizontal margin so it doesn't touch edges */
    overflow: hidden;
    background-color: #e2e8f0;
}

.dropdown-header {
    padding: 0.75rem 1rem 0.25rem 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Bubble Button System (Global) */
.btn-bubble {
    border-radius: 50px;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-bubble:active {
    filter: brightness(0.95);
}

.btn-bubble-blue {
    background: #E0F2FE;
    color: #0284C7;
    border: 2px solid #7DD3FC;
}

.btn-bubble-green {
    background: #DCFCE7;
    color: #16A34A;
    border: 2px solid #86EFAC;
}

.btn-bubble-pink {
    background: #FCE7F3;
    color: #DB2777;
    border: 2px solid #F9A8D4;
}

.btn-bubble-orange {
    background: #FEF3C7;
    color: #D97706;
    border: 2px solid #FCD34D;
}

.btn-bubble:hover {
    filter: brightness(1.05);
}

/* License Badges inside Dropdown */
.license-info-active {
    color: var(--success);
    font-weight: 600;
    background: #f0fdf4;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-block;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.license-info-inactive {
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-block;
    font-size: 0.75rem;
}