/* Compound Interest Calculator Stylesheet */
.comp-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.comp-container {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.comp-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #064e3b; 
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.comp-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.comp-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.comp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Updated to include the select dropdown */
.comp-input-group input,
.comp-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.comp-input-wrapper input {
    padding-left: 30px; 
}

.comp-input-wrapper #compRate {
    padding-left: 12px;
    padding-right: 35px; 
}

.comp-currency, .comp-symbol {
    position: absolute;
    font-weight: 600;
    color: #64748b;
}

.comp-currency { left: 12px; }
.comp-symbol { right: 12px; }

.comp-input-group input:focus,
.comp-input-group select:focus {
    outline: none;
    border-color: #10b981; 
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: #ffffff;
}

.comp-btn {
    width: 100%;
    background: #059669; 
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

.comp-btn:hover {
    background: #047857;
}

.comp-result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #ecfdf5; 
    border: 1px solid #a7f3d0;
    display: none; 
}

.comp-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #065f46;
    letter-spacing: 0.05em;
}

.comp-result-main {
    margin: 10px 0 15px 0;
    font-size: 2.1rem;
    font-weight: 900;
    color: #047857;
}

.comp-breakdown {
    border-top: 1px solid #6ee7b7;
    padding-top: 15px;
    text-align: left;
    font-size: 0.9rem;
    color: #065f46;
}

.comp-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comp-breakdown-row:last-child {
    margin-bottom: 0;
}

.comp-highlight {
    color: #059669;
    font-weight: 800;
}