/* 
   Simple and Clean Design System
   Copied from solor-power-simulator/style.css
   Color Palette: White, Light Gray, Soft Blue
*/

:root {
    --bg-color: #f8fafb;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --primary-color: #01894d;
    /* Brand Green */
    --primary-hover: #00703e;
    --brand-green: #01894d;
    --brand-orange: #f39800;
    --accent-color: #f0fdf4;
    /* Light Green */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* Header Design (brand Style) */
.main-header {
    background-color: var(--brand-green);
    border-bottom: 2px solid var(--brand-orange);
    padding: 15px 0;
    color: #ffffff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.main-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0;
}

nav {
    display: flex;
    gap: 10px;
}

.btn-print, .btn-home {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-print:hover, .btn-home:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1000px;
    width: 100%;
    padding: 1rem 24px;
    margin: 80px auto 0; /* Adjusted for fixed header */
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card h2 {
    font-size: 1.2rem;
    color: var(--brand-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-orange);
}

.section-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: var(--brand-green);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Inputs */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 640px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 2px rgba(1, 137, 77, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.help-btn {
    background: #eee;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 5px;
    color: #555;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.help-text {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Charts */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin-bottom: 30px;
}

/* Info Section */
.info-section {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.info-header {
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f8fafb;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.info-header:hover {
    background-color: #f1f3f5;
}

.info-header h2 {
    font-size: 1.1rem;
    color: var(--brand-green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    fill: #666;
}

.info-content {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: block;
}

.info-section.collapsed .info-content {
    display: none;
}

.info-section.collapsed .toggle-icon {
    transform: rotate(-180deg);
}
