@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&family=Space+Grotesk:wght@700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active model card styling */
.model-card.active {
    border-color: #6366f1;
    background-color: #f5f3ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .model-card.active {
    border-color: #818cf8;
    background-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Donut Chart / Response Time Gauge styling */
.time-gauge {
    position: relative;
    width: 140px;
    height: 140px;
}

.gauge-svg {
    transform: rotate(-90deg);
    overflow: visible;
}

.gauge-background {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.5;
}

.dark .gauge-background {
    stroke: #334155;
}

.gauge-foreground {
    fill: none;
    stroke: #6366f1;
    stroke-width: 4.5;
    stroke-dasharray: 0 1000;
    stroke-linecap: round;
    transition: stroke-dasharray 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

/* Global Header Grimont */
.grimont-global-header {
    width: 100%;
    z-index: 100;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.grimont-global-header * { box-sizing: border-box; }
.grimont-global-header .ggh-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ggh-left { display: flex; align-items: center; gap: 1.5rem; }
.ggh-logo-group {
    display: flex; align-items: center; gap: 0.875rem; text-decoration: none; transition: transform 0.2s ease;
}
.ggh-logo-group:hover { transform: scale(1.02); }
.ggh-logo-box {
    width: 40px; height: 40px; background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.25rem; border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25); flex-shrink: 0;
}
.ggh-logo-text {
    font-family: 'Space Grotesk', monospace; font-weight: 800; font-size: 1.2rem;
    color: white; letter-spacing: 0.05em; display: none;
}
.ggh-logo-text span { color: #00f2ff; }
@media (min-width: 640px) { .ggh-logo-text { display: block; } }
.ggh-separator { width: 1px; height: 36px; background-color: rgba(255, 255, 255, 0.1); display: none; }
@media (min-width: 768px) { .ggh-separator { display: block; } }
.ggh-app-info { display: flex; flex-direction: column; justify-content: center; }
.ggh-app-title-group { display: flex; align-items: center; gap: 0.6rem; }
.ggh-app-icon-container {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #a5b4fc; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); flex-shrink: 0;
}
.ggh-app-name { font-weight: 700; color: white; font-size: 1.05rem; margin: 0; padding: 0; letter-spacing: 0.02em; }
.ggh-app-desc {
    font-size: 0.8rem; color: #94a3b8; max-width: 600px;  
     display: none; margin: 4px 0 0 0; padding: 0; line-height: 1.4; font-weight: 300;
}
@media (min-width: 1024px) { .ggh-app-desc { display: block; } }
.ggh-right { display: flex; align-items: center; gap: 1rem; }
.ggh-right button {
    background: rgba(30, 41, 59, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important; width: 40px !important; height: 40px !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; transition: all 0.2s ease !important; padding: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.ggh-right button:hover {
    background: rgba(30, 41, 59, 1) !important; color: white !important; border-color: rgba(255, 255, 255, 0.2) !important; transform: translateY(-1px) !important;
}

/* UI Elements Custom styling */
.text-editor-input {
    border-bottom: 2px dashed #cbd5e1;
    background: transparent;
    transition: all 0.2s ease;
}
.text-editor-input:focus {
    border-bottom-color: #6366f1;
    outline: none;
}
.dark .text-editor-input {
    border-bottom-color: #475569;
}
.dark .text-editor-input:focus {
    border-bottom-color: #818cf8;
}

/* Interactive animations for list reordering */
.question-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Option styling */
.form-choice-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* PRINT STYLES */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }
    
    .grimont-global-header,
    #sidebar-panel,
    #editor-controls,
    .no-print,
    button,
    .btn,
    .theme-toggle,
    header,
    footer {
        display: none !important;
    }

    #questionnaire-preview-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .question-card {
        page-break-inside: avoid !important;
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .theme-section-header {
        page-break-after: avoid !important;
        border-bottom: 2px solid #000000 !important;
        color: #000000 !important;
        padding-top: 2rem !important;
    }

    /* Keep checkboxes and radio buttons visible in black and white */
    .checkbox-mock, .radio-mock {
        border: 1px solid #000000 !important;
        background: transparent !important;
    }

    h1, h2, h3, h4 {
        color: #000000 !important;
    }
}
