/* IPC Calculator Specific Styles */

/* Hero Section Styles */
.ipc-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ee 100%);
    padding: 3rem 0;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.ipc-hero h1 {
    font-weight: 700;
    color: #2c3e50;
}

.ipc-hero .lead {
    color: #566573;
    font-size: 1.15rem;
}

/* Breadcrumb Styles */
.ipc-breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.ipc-breadcrumb .breadcrumb-item {
    font-size: 0.9rem;
}

.ipc-breadcrumb .breadcrumb-item.active {
    color: #3498db;
}

/* Card Styles */
.ipc-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.ipc-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.ipc-card .card-header {
    background-color: #3498db;
    color: white;
    border-bottom: none;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.ipc-card .form-label {
    font-weight: 500;
    color: #34495e;
}

/* Table Styles */
.ipc-table {
    border-collapse: separate;
    border-spacing: 0;
}

.ipc-table thead th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
}

.ipc-table tbody tr:hover {
    background-color: #f1f9ff;
}

.ipc-table .value-up {
    color: #27ae60;
}

.ipc-table .value-down {
    color: #e74c3c;
}

/* Chart Container Styles */
.chart-container {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.chart-container h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaecee;
}

/* Info Sections */
.ipc-info-section {
    padding: 2rem 0;
}

.ipc-info-card {
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ipc-info-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ipc-info-card p {
    color: #566573;
    margin-bottom: 0.5rem;
}

/* Calculator Form Styles */
.ipc-form .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.ipc-form .input-group-text {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.ipc-form .btn-calculate {
    background-color: #3498db;
    border-color: #3498db;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.ipc-form .btn-calculate:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.ipc-form .btn-reset {
    background-color: #95a5a6;
    border-color: #95a5a6;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.ipc-form .btn-reset:hover {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
}

/* Results Section Styles */
.results-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.result-card {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    flex: 1;
    margin: 0 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.result-card:first-child {
    margin-left: 0;
}

.result-card:last-child {
    margin-right: 0;
}

.result-card .result-title {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-card .result-value {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.result-card .result-value.positive {
    color: #27ae60;
}

.result-card .result-value.negative {
    color: #e74c3c;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .results-summary {
        flex-direction: column;
    }
    
    .result-card {
        margin: 0.5rem 0;
    }
    
    .result-card:first-child {
        margin-top: 0;
    }
    
    .result-card:last-child {
        margin-bottom: 0;
    }
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 3rem;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: #3498db;
    color: white;
}

.faq-section .accordion-button:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Expert Author Section */
.author-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.author-section .author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
    border: 3px solid #3498db;
}

.author-section .author-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-section .author-info p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.author-section .author-info .author-credentials {
    font-size: 0.85rem;
    color: #95a5a6;
} 