/* Common form styles */
.input-group {
    margin-bottom: 1.5rem;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    outline: none;
    font-size: 1rem;
    height: 48px;
}

input:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.currency, .symbol {
    position: absolute;
    color: #718096;
    padding: 0 0.75rem;
}

.currency {
    left: 0;
}

.symbol {
    right: 0;
}

/* Button styles */
.action-button,
.tool-link {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.action-button:hover,
.tool-link:hover {
    background: #3182ce;
}

/* Toggle buttons */
.toggle-group {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.toggle, .rate-toggle {
    width: 50px;
    height: 48px;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    flex-shrink: 0;
}

.toggle:hover, .rate-toggle:hover {
    background: #f7fafc;
    border-color: #4299e1;
}

.toggle.active, .rate-toggle.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

/* Calculator and comparison styles */
.calculator,
.comparison-container,
.rate-tracker {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.result-item {
    margin: 1rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 4px;
}

/* Rate tracker specific styles */
.rate-card {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rate {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.rate-value {
    font-size: 2.5rem;
    font-weight: 500;
    color: #2d3748;
}

/* Tool cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.tool-card h2 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.tool-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.tool-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.tool-link:hover {
    background: #3182ce;
}
