/* Shared styles for Finance Tools */
.tl-finance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .tl-finance-grid { grid-template-columns: 1fr 1fr; }
}

.tl-finance-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tl-finance-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.tl-finance-output-area {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.tl-finance-result-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tl-finance-result-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tl-finance-main-result {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}

.tl-finance-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: left;
}
.tl-finance-stat {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}
.tl-finance-stat-label { color: var(--text-muted); }
.tl-finance-stat-val { font-weight: 600; color: var(--dark); }

.tl-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tl-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.tl-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.tl-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    outline: none;
    background: #fff;
}

/* Prefixes and Suffixes for Input */
.tl-input-prefix-wrapper, .tl-input-suffix-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}
.tl-input-prefix-wrapper:focus-within, .tl-input-suffix-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.tl-input-prefix, .tl-input-suffix {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 10px 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}
.tl-input-suffix {
    border-right: none;
    border-left: 1px solid var(--border);
}
.tl-input-with-prefix, .tl-input-with-suffix {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.button {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}
.button-primary {
    background: var(--primary);
    color: white;
}
.button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
