/* Global Styles */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

/* Header */
.header {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    flex-grow: 1;
}

/* Main Content Styles */
.funding-container {
    max-width: 900px;
    width: 100%;
    padding: 2rem;
    margin: 2rem auto;
}

.section-card {
    background: white;
    padding: 2rem;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    color: #2ecc71;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #333;
    text-align: center;
    margin-top: 25px;
}

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

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.cap-table-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.cap-table-row input {
    flex-grow: 1;
}

.cap-table-row .percent-input {
    width: 80px;
}

.remove-btn {
    width: 40px;
    height: 40px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    margin-top: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-success {
    background-color: #2ecc71;
    color: white;
}

.btn-primary:hover, .btn-secondary:hover, .btn-success:hover {
    filter: brightness(1.1);
}

.summary-results {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.summary-results p {
    font-size: 1.1rem;
    margin: 5px 0;
}

.result-value {
    font-weight: bold;
    color: #0056b3;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.chart-col {
    width: 45%;
    max-width: 400px;
}

.guidance {
    background-color: #f1f8e9;
    border-left: 5px solid #aed581;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: 2rem;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .funding-container {
        padding: 1rem;
    }
    .header {
        height: 60px;
    }
    .logo {
        height: 40px;
    }
    .header-title {
        font-size: 1rem;
    }
    .chart-container {
        flex-direction: column;
        align-items: center;
    }
    .chart-col {
        width: 100%;
        max-width: none;
    }
}