/* sip-style.css */
.sip-calculator-container {
    max-width: 500px;
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sip-calculator-container h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.sip-form-group {
    margin-bottom: 18px;
}

.sip-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.sip-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.sip-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.sip-calculate-btn {
    width: 100%;
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.sip-calculate-btn:hover {
    background: #005a87;
}

/* Modal Styles */
.sip-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s;
}

.sip-modal-content {
    background-color: #fff;
    margin: 8% auto;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.sip-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sip-modal-header h3 {
    margin: 0;
    color: #0073aa;
}

.sip-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.sip-modal-close:hover {
    color: #333;
}

.sip-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.sip-result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sip-result-item strong {
    color: #555;
}

.sip-result-item span {
    font-weight: 600;
    color: #333;
}

.sip-total {
    background: #e8f4f8;
    margin: 5px -10px;
    padding: 12px 10px;
    border-radius: 6px;
    border-bottom: none;
}

.sip-total strong {
    color: #0073aa;
}

.sip-total span {
    color: #0073aa;
    font-size: 1.1em;
}

hr {
    margin: 12px 0;
    border: none;
    border-top: 2px solid #eee;
}

.sip-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.sip-modal-close-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.sip-modal-close-btn:hover {
    background: #005a87;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}