/* GST Calculator - tool-specific styles (imports tools-common.css) */

.gst-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-group-header label {
    margin-bottom: 0;
}

.mode-hint {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.unit-toggle {
    display: flex;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.unit-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.unit-btn.active {
    background: var(--primary-color);
    color: white;
}

.gst-rate-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-btn {
    flex: 1;
    min-width: 60px;
    border: 1px solid var(--border-color);
    background: white;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.rate-btn:hover {
    border-color: var(--primary-color);
}

.rate-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.unit-fields {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-fields input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 0;
}

.unit-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.unit-suffix {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.emi-result {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.emi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.emi-stat {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: center;
}

.emi-stat.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: transparent;
}

.emi-stat.highlight .emi-stat-label,
.emi-stat.highlight .emi-stat-value {
    color: white;
}

.emi-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.emi-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
}

.gst-split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.gst-split-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
}

.gst-split-item.full-width {
    grid-column: 1 / -1;
}

.gst-split-label {
    font-weight: 700;
    color: #0f766e;
    font-size: 0.9rem;
}

.gst-split-value {
    font-weight: 800;
    color: #1f2937;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .emi-stat-value { font-size: 1.3rem; }
    .gst-rate-buttons { gap: 6px; }
    .rate-btn { min-width: 50px; padding: 8px 6px; font-size: 0.82rem; }
}
