body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #1a73e8;
    margin-bottom: 10px;
}

.budget-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.budget-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.budget-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-input label {
    font-weight: bold;
}

.budget-input input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
}

.trip-parameters {
    display: flex;
    gap: 20px;
}

.trip-parameters > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trip-parameters label {
    font-weight: bold;
}

.trip-parameters input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 80px;
}

.budget-status {
    display: flex;
    gap: 30px;
}

.budget-allocated, .budget-remaining {
    text-align: center;
}

.budget-allocated h3, .budget-remaining h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.budget-allocated p, .budget-remaining p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.over-budget {
    color: #d32f2f;
}

.budget-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-card h3 {
    margin: 0;
    color: #1a73e8;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-amount p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.percentage {
    color: #666;
    font-size: 14px;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-options button {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s;
}

.category-options button:hover {
    background-color: #e8f0fe;
    border-color: #1a73e8;
}

.category-options button.selected {
    background-color: #e8f0fe;
    border-color: #1a73e8;
    font-weight: bold;
}

.option-cost {
    font-size: 12px;
    color: #666;
}

.budget-visualization {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.budget-visualization h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a73e8;
}

.budget-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-bar {
    height: 30px;
    background-color: #1a73e8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    min-width: 30px;
    transition: width 0.5s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.budget-recommendations {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.budget-recommendations h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a73e8;
}

.recommendation {
    padding: 15px;
    border-radius: 4px;
}

.recommendation h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.recommendation p {
    margin-bottom: 10px;
}

.recommendation ul {
    margin: 0;
    padding-left: 20px;
}

.recommendation li {
    margin-bottom: 5px;
}

.over-budget {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.under-budget {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.balanced-budget {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
}

footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .budget-summary {
        flex-direction: column;
    }
    
    .trip-parameters {
        flex-direction: column;
    }
    
    .budget-status {
        flex-direction: column;
        gap: 15px;
    }
    
    .budget-categories {
        grid-template-columns: 1fr;
    }
}

.travel-requirements {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.travel-requirements h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a73e8;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.requirement-card {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.requirement-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a73e8;
}

.requirement-card ul {
    margin: 0;
    padding-left: 20px;
}

.requirement-card li {
    margin-bottom: 5px;
}

.chart-text-background {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}

.chart-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.chart-bar {
    height: 30px;
    background-color: #1a73e8;
    border-radius: 4px;
    min-width: 30px;
    transition: width 0.5s ease-in-out;
}

.chart-bar-label {
    margin-left: 10px;
    font-weight: bold;
    color: #333;
}
