/*
    Quantum Sales CSS 
    Futuristic Purple Dark Mode Theme
*/

:root {
    --primary-color: #00ff88; /* Emerald Green */
    --secondary-color: #004d33; /* Deep Emerald */
    --accent-color: #00ffcc; /* Mint */
    --text-color: #f0f0f0;
    --muted-color: #999999;
    --bg-dark: #0a0a0a; /* Charcoal */
    --bg-surface: rgba(18, 18, 18, 0.7); 
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
    --neon-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, .glow-text, .btn-secondary, .gen-btn {
    font-family: 'Lexend', sans-serif;
    letter-spacing: -0.5px;
    font-weight: 700;
}

label, input, select, textarea {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Background Animation */
.background-animation {
    background: var(--bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation {
    background: radial-gradient(circle at top left, #121212, #0a0a0a);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

@keyframes pulseBG {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

/* Main Layout */
.glass-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-speed);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.glow-text {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(to bottom right, #ffffff, #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}

.subtitle {
    color: var(--accent-color);
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select, textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    transform: scale(1.01);
}

.full-width {
    grid-column: 1 / -1;
}

.mandatory-field textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
}

.required {
    color: #ff4444;
}

/* Requirement Input Wrapper */
.requirement-input-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px dashed var(--glass-border);
}

#file_status {
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* Output Configuration */
.output-config {
    margin-top: 40px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(185, 131, 255, 0.2);
}

.output-config h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--muted-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.region-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Action Section */
.action-section {
    margin-top: 40px;
    text-align: center;
}

.action-section h3 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gen-btn, .btn-secondary {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-color);
    background: var(--secondary-color);
}

.gen-btn:active {
    transform: translateY(1px);
}

.tech-plan-wrapper {
    display: flex;
    gap: 8px;
}

.tech-plan-wrapper button {
    flex: 1;
}

.tech-plan-wrapper select {
    width: 120px;
    background: var(--bg-dark);
}

/* Output Display */
.output-display {
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    animation: slideIn 0.5s ease-out;
}

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

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-copy {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-copy:hover {
    background: var(--accent-color);
    color: white;
}

.output-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 200px;
    white-space: pre-wrap;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Loading Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    text-align: center;
}

.orbit {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader p {
    font-family: 'Lexend', sans-serif;
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: breathe 2s linear infinite;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--muted-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-grid, .config-grid, .button-grid {
        grid-template-columns: 1fr;
    }
    .glass-container {
        margin: 10px;
        padding: 20px;
    }
    .glow-text {
        font-size: 2rem;
    }
}
