:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --accent-color: #111827; /* Black/Dark Gray Button */
    --border-color: #e5e7eb;
    
    /* Card Colors */
    --blue-bg: #eff6ff;
    --blue-text: #1d4ed8;
    --green-bg: #ecfdf5;
    --green-text: #047857;
    --purple-bg: #f3e8ff;
    --purple-text: #7e22ce;
    --orange-bg: #fff7ed;
    --orange-text: #c2410c;
}

.main-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 30px;
        margin: 0 auto;
    margin-bottom: 20px;
}

.catalogue-module{
    display: none;
}

.info-icon {
    color: var(--text-secondary);
    font-size: 0.9em;
    cursor: pointer;
}

/* Form Section */
.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #fff;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#calculate-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

#calculate-btn:hover {
    background-color: #000;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #f3f4f6;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
}

.tab-btn.active {
    background: #fff;
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Content Views */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Result Cards */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.card h3 {
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.card .value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Specific Card Colors */
.card-blue {
    background-color: var(--blue-bg);
    border-color: #bfdbfe;
    color: var(--blue-text);
}

.card-green {
    background-color: var(--green-bg);
    border-color: #a7f3d0;
    color: var(--green-text);
}

.card-purple {
    background-color: var(--purple-bg);
    border-color: #ddd6fe;
    color: var(--purple-text);
}

.card-purple .sub-tag {
    font-size: 0.75rem;
    background-color: rgba(255,255,255,0.5);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

.card-orange {
    background-color: var(--orange-bg);
    border-color: #fed7aa;
    color: var(--orange-text);
}

/* Charts Area */
.charts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 10px 0;
}

.chart-wrapper {
    width: 100%;
    position: relative;
}

.bar-chart-wrapper {
    height: 300px;
}

.pie-chart-wrapper {
    height: 250px;
    max-width: 300px;
}

/* Summary Footer */
.summary-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.summary-footer h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#summary-list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}
