﻿:root {
    /* Colors - Light Theme */
    --primary-hue: 250;
    --primary-color: hsl(var(--primary-hue), 85%, 60%);
    --primary-color-hover: hsl(var(--primary-hue), 85%, 55%);
    --primary-light: hsl(var(--primary-hue), 85%, 90%);

    --secondary-color: hsl(280, 80%, 55%);
    --accent-color: hsl(310, 80%, 65%);

    --bg-color: hsl(220, 20%, 97%);
    --surface-color: rgba(255, 255, 255, 0.7);
    --surface-solid: #ffffff;
    --surface-border: rgba(255, 255, 255, 0.4);
    --card-hover: rgba(255, 255, 255, 0.9);

    --text-main: hsl(220, 40%, 15%);
    --text-muted: hsl(220, 20%, 40%);
    --text-placeholder: hsl(220, 10%, 60%);

    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: hsl(220, 20%, 85%);

    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.1);
    --shadow-hover: 0 12px 40px rgba(31, 38, 135, 0.15);

    --variable-highlight-bg: rgba(99, 102, 241, 0.15);
    --variable-highlight-text: var(--primary-color);
    --variable-border: var(--primary-light);
}

[data-theme="dark"] {
    /* Colors - Dark Theme */
    --primary-color: hsl(var(--primary-hue), 90%, 65%);
    --primary-color-hover: hsl(var(--primary-hue), 90%, 75%);
    --primary-light: hsl(var(--primary-hue), 40%, 25%);

    --bg-color: hsl(220, 30%, 8%);
    --surface-color: rgba(30, 35, 55, 0.6);
    --surface-solid: hsl(220, 30%, 12%);
    --surface-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(40, 45, 70, 0.8);

    --text-main: hsl(220, 20%, 95%);
    --text-muted: hsl(220, 20%, 70%);
    --text-placeholder: hsl(220, 10%, 40%);

    --input-bg: rgba(15, 20, 35, 0.6);
    --input-border: hsl(220, 20%, 25%);

    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);

    --variable-highlight-bg: rgba(129, 140, 248, 0.2);
    --variable-highlight-text: hsl(var(--primary-hue), 95%, 80%);
    --variable-border: hsla(var(--primary-hue), 70%, 50%, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Background Effects */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.shape-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 60%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(5%, 5%);
    }

    100% {
        transform: scale(1) translate(-5%, -5%);
    }
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.glass-header {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 1.5rem;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.app-name {
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.app-name span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: var(--surface-solid);
    border: 1px solid var(--surface-border);
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* Main Layout */
.main-layout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    width: 100%;
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Panels */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.panel-header {
    margin-bottom: 2rem;
}

.panel-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.panel-header h2 i {
    color: var(--primary-color);
}

.panel-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.75rem;
}

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

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    appearance: none;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

option {
    background-color: var(--surface-solid);
    color: var(--text-main);
}

.select-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 500px) {
    .radio-cards {
        grid-template-columns: 1fr;
    }
}

.radio-card {
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 0.5rem;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.card-content i {
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    transition: color 0.2s;
}

.radio-card .text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.title {
    font-weight: 600;
    font-size: 0.95rem;
}

.desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.radio-card input:checked+.card-content {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.radio-card input:checked+.card-content i {
    color: var(--primary-color);
}

.radio-card:hover .card-content {
    border-color: var(--primary-color-hover);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    background: var(--surface-solid);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:not(:disabled):hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Result Area */
.result-display {
    flex: 1;
    background: var(--surface-solid);
    border: 1px solid var(--surface-border);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.6;
    min-height: 300px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon-wrapper i {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    opacity: 0.8;
}

.empty-state p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

.prompt-output {
    white-space: pre-wrap;
    animation: fadeIn 0.4s ease forwards;
    outline: none;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
    cursor: text;
}

.prompt-output:hover {
    background: rgba(255, 255, 255, 0.05);
}

.prompt-output:focus {
    border-color: var(--primary-color);
    background: var(--surface-solid);
    box-shadow: 0 0 0 3px var(--primary-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Important Variables in Prompt */
.p-var {
    background-color: var(--variable-highlight-bg);
    color: var(--variable-highlight-text);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: 1px dashed var(--variable-border);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        border-color: transparent;
    }

    100% {
        opacity: 1;
    }
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface-solid);
    border: 2px solid var(--primary-color);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    color: var(--primary-color);
}
/* Extracted from index.html */

.grimont-global-header {
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85); /* Slightly darker for better readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* slightly stronger border */
    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: 1200px;
    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: #d1d5db;
    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;
}

