/* Base Styles */
.kb-pro-calculator {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    color: #333;
}

.kb-pro-calculator h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 600;
}

.kb-pro-calculator h2 {
    color: #34495e;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.kb-pro-calculator h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.kb-pro-description {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Styles */
.kb-pro-form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.kb-pro-form-section:hover {
    background: #f1f3f5;
}

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

.kb-pro-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.kb-pro-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.kb-pro-form-control:focus {
    border-color: #4dabf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.kb-pro-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #228be6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    width: 100%;
}

.kb-pro-btn:hover {
    background: #1c7ed6;
    transform: translateY(-2px);
}

.kb-pro-btn:active {
    transform: translateY(0);
}

.kb-pro-btn.secondary {
    background: #495057;
}

.kb-pro-btn.secondary:hover {
    background: #343a40;
}

/* Loading Spinner */
.kb-pro-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Styles */
#kb-pro-results-container {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.kb-pro-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.kb-pro-results-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.kb-pro-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.kb-pro-result-item:last-child {
    border-bottom: none;
}

.kb-pro-result-label {
    font-weight: 500;
    color: #495057;
}

.kb-pro-result-value {
    font-weight: 600;
    color: #228be6;
}

.kb-pro-results-chart {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    height: 300px;
}

.kb-pro-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kb-pro-calculator {
        padding: 15px;
    }
    
    .kb-pro-results-grid {
        grid-template-columns: 1fr;
    }
    
    .kb-pro-calculator h1 {
        font-size: 26px;
    }
    
    .kb-pro-actions {
        flex-direction: column;
    }
    
    .kb-pro-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .kb-pro-calculator {
        box-shadow: none;
        padding: 0;
    }
    
    .kb-pro-form-section, #kb-pro-calculate-form {
        display: none;
    }
    
    #kb-pro-results-container {
        display: block !important;
        margin-top: 0;
    }
    
    .kb-pro-actions {
        display: none;
    }
}