/* Inherit theme from shared.css */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-primary);
}

.header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon {
    font-size: 2.5rem;
    background: var(--primary-transparent);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.calculators {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.calc-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-inputs-stacked {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.calc-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.num-input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s;
    width: 150px;
    text-align: center;
}

.num-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--primary-glow);
}

/* Hide number input spinners */
.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.num-input[type=number] {
    -moz-appearance: textfield;
}

.calc-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.calc-btn {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 1px;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(136, 189, 242, 0.4);
}

.calc-btn:active {
    transform: translateY(0);
}

.results-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--primary-transparent);
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
}

.result-val {
    font-weight: 600;
    font-family: monospace;
    font-size: 1.5rem;
}

.result-val.highlight {
    color: var(--text-primary);
    font-size: 1.75rem;
}

.related {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.related-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--primary-shadow-sm);
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-primary);
}
