.ib-calculator-container {
    max-width: 1000px;
    margin: 40px auto;
    color: #1a1a1a;
    line-height: 1.6;
}

.ib-calculator-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.ib-calculator-card h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.ib-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .ib-calculator-grid {
        grid-template-columns: 1fr;
    }
}

.ib-input-group {
    display: flex;
    flex-direction: column;
}

.ib-input-group label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
}

.ib-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fcfcfc;
    transition: all 0.3s ease;
}

.ib-prefix {
    background: #f0f0f0;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
}

.ib-input-wrapper input {
    border: none;
    padding: 14px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.ib-select-wrapper select {
    border: none;
    background: #f0f0f0;
    padding: 0 15px;
    height: 100%;
    outline: none;
    cursor: pointer;
}

.ib-button-group {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ib-btn-primary {
    color: #ffffff;
    border: none;
    padding: 16px 60px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ib-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ib-btn-clear {
    background: transparent;
    border: none;
    color: #999;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.ib-results-container {
    margin-top: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.ib-results-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .ib-results-summary {
        grid-template-columns: 1fr;
    }
}

.ib-result-box {
    padding: 25px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    text-align: center;
}

.ib-result-box.ib-highlight {
    color: #ffffff;
}

.ib-result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.ib-result-value {
    font-size: 1.6rem;
    font-weight: 800;
}

.ib-chart-wrapper {
    width: 100%;
    height: 450px;
    background: #fcfcfc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.ib-table-wrapper {
    overflow-x: auto;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f8f8;
    position: sticky;
    top: 0;
    padding: 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #eee;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ib-error-message {
    color: #ff4444;
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}
