/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #043A22;
    --primary-hover: #043A22;
    --secondary-color: #6c757d;
    --success-color: #043A22;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header & Navigation ===== */
.top-header {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    background: linear-gradient(135deg, #043A22 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.top-header h1 {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.top-nav {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0px;
    flex-wrap: wrap;
}

.nav-btn {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: white;
    color: #043A22;
    border-color: white;
}

.nav-btn .icon {
    font-size: 1.25rem;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    max-width: 1650px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== Cards & Containers ===== */
.prompt-container,
.report-container,
.chart-container {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* ===== Form Elements ===== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.company-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

.company-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== Buttons ===== */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.primary-btn {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    background: linear-gradient(135deg, #043A22 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.btn-icon {
    font-size: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    accent-color: #043A22; /* Change this color to whatever you want */
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===== Response Display ===== */
.response-container {
    margin-top: 2rem;
    min-height: 100px;
}

.ai-response {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.8;
}

.ai-response h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.ai-response strong {
    color: var(--text-primary);
}

.ai-response a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.ai-response a:hover {
    border-bottom-color: var(--primary-color);
}

/* ===== Loading Spinner ===== */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Download Link ===== */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--success-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.download-link:hover {
    background: #076F40;
    transform: translateY(-2px);
}

/* ===== Chart Display ===== */
.chart-display {
    margin-top: 2rem;
    min-height: 400px;
    background: var(--surface);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    background: #043A22;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .top-header h1 {
        font-size: 1.5rem;
    }
    
    .top-nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .prompt-container,
    .report-container,
    .chart-container {
        padding: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
}


.brand{
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 461px; 
}

.brand-logo{
  width: 60px;     /* adjust */
  height: 60px;    /* adjust */
  object-fit: contain;
  display: block;
}

.brand h1{
  margin: 0;
}

.company-select{
  width: 100%;
  font-size: 16px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #0b3d2e;
  background: #fff;
}

