/* Budget Planner Styles */
.budget-planner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

/* Header */
.bp-header {
    text-align: center;
    margin-bottom: 30px;
}

.bp-title {
    font-size: 2.5em;
    color: #ff1716;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.bp-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* View Toggle */
.bp-view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.bp-toggle-btn {
    padding: 12px 30px;
    border: 2px solid #ff1716;
    background: white;
    color: #ff1716;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bp-toggle-btn:hover {
    background: #fff5f5;
}

.bp-toggle-btn.active {
    background: #ff1716;
    color: white;
}

/* Content */
.bp-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Sections */
.bp-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.bp-section:last-child {
    border-bottom: none;
}

.bp-section-title {
    font-size: 1.5em;
    color: #ff1716;
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* Input Grid */
.bp-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.bp-input-group {
    display: flex;
    flex-direction: column;
}

.bp-input-group label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.bp-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

.bp-input:focus {
    outline: none;
    border-color: #ff1716;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 23, 22, 0.1);
}

.bp-input.error {
    border-color: #ff1716;
    background: #fff5f5;
}

/* Total Display */
.bp-total {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: right;
}

.bp-amount {
    color: #ff1716;
    font-weight: 700;
    font-size: 1.2em;
}

/* Summary Section */
.bp-summary {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #ff1716;
}

.bp-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bp-summary-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.income-card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.expense-card {
    background: linear-gradient(135deg, #ff1716 0%, #e01515 100%);
    color: white;
}

.balance-card {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.bp-summary-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bp-summary-value {
    font-size: 2em;
    font-weight: 700;
}

/* Insights */
.bp-insights {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ff1716;
}

.bp-insight-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bp-insight-item:last-child {
    border-bottom: none;
}

.bp-insight-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Expense Breakdown */
.bp-breakdown {
    margin-top: 20px;
}

.bp-breakdown h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.bp-category-bar {
    margin-bottom: 15px;
}

.bp-category-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.bp-category-name {
    font-weight: 600;
    color: #555;
}

.bp-category-amount {
    color: #ff1716;
    font-weight: 600;
}

.bp-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.bp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff1716 0%, #ff5a59 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Action Buttons */
.bp-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.bp-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-btn-primary {
    background: #ff1716;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 23, 22, 0.3);
}

.bp-btn-primary:hover {
    background: #e01515;
    box-shadow: 0 6px 16px rgba(255, 23, 22, 0.4);
    transform: translateY(-2px);
}

.bp-btn-secondary {
    background: white;
    color: #ff1716;
    border: 2px solid #ff1716;
}

.bp-btn-secondary:hover {
    background: #fff5f5;
}

/* Info Box */
.bp-info-box {
    padding: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bp-info-box p {
    margin: 0;
    color: #1976D2;
}

/* SEO Content Section */
.bp-seo-content {
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
}

.bp-seo-content h2 {
    color: #ff1716;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.bp-seo-content h3 {
    color: #333;
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.bp-seo-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.bp-seo-content ul,
.bp-seo-content ol {
    line-height: 1.8;
    color: #555;
    padding-left: 20px;
}

.bp-seo-content li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .budget-planner-container {
        padding: 15px;
    }
    
    .bp-title {
        font-size: 2em;
    }
    
    .bp-content {
        padding: 20px;
    }
    
    .bp-input-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bp-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .bp-actions {
        flex-direction: column;
    }
    
    .bp-btn {
        width: 100%;
    }
    
    .bp-view-toggle {
        flex-direction: column;
    }
    
    .bp-toggle-btn {
        width: 100%;
    }
}

@media print {
    .bp-actions,
    .bp-view-toggle,
    .bp-seo-content {
        display: none;
    }
    
    .bp-summary {
        page-break-inside: avoid;
    }
}
