/* Steps to Miles Calculator - Minimal Design */
.stmc-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.stmc-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.stmc-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2563eb;
}

.stmc-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.stmc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stmc-card-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
}

/* Grid Layouts */
.stmc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .stmc-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Elements */
.stmc-field {
    margin-bottom: 20px;
}

.stmc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.stmc-label-small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.stmc-field input[type="number"],
.stmc-field select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.stmc-field input[type="number"]:focus,
.stmc-field select:focus {
    outline: none;
    border-color: #2563eb;
}

.stmc-height-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stmc-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.stmc-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.stmc-radio-group input[type="radio"] {
    cursor: pointer;
}

.stmc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.stmc-checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

/* Results Box */
.stmc-results-box {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 24px;
    height: 100%;
}

.stmc-results-box h4 {
    margin: 0 0 20px 0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2563eb;
}

.stmc-result-main {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1d5db;
}

.stmc-result-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1e40af;
    line-height: 1;
}

.stmc-result-unit {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-top: 8px;
}

.stmc-result-secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stmc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.stmc-result-row span:first-child {
    color: #64748b;
}

.stmc-result-row span:last-child {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: #1e40af;
}

/* Reverse Calculator */
.stmc-reverse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .stmc-reverse-grid {
        grid-template-columns: 1fr;
    }
}

.stmc-reverse-result {
    background: #f0f7ff;
    padding: 16px 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.stmc-reverse-result span:first-child {
    color: #64748b;
    font-weight: 500;
}

.stmc-reverse-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1e40af;
}

/* Table */
.stmc-table-wrapper {
    overflow-x: auto;
}

.stmc-table {
    width: 100%;
    border-collapse: collapse;
}

.stmc-table th,
.stmc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.stmc-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    background: #f9fafb;
}

.stmc-table td {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.stmc-table tbody tr:hover {
    background: #f9fafb;
}

/* Info Cards */
.stmc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .stmc-info-grid {
        grid-template-columns: 1fr;
    }
}

.stmc-info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stmc-info-card h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
}

.stmc-info-card p,
.stmc-info-card li {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.stmc-info-card ol,
.stmc-info-card ul {
    margin: 0;
    padding-left: 20px;
}

.stmc-info-card li {
    margin-bottom: 6px;
}

.stmc-formula {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 4px;
    margin-top: 12px;
}

.stmc-formula code {
    font-size: 11px;
    color: #374151;
    font-family: 'Courier New', monospace;
}

/* Footer */
.stmc-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.stmc-footer p {
    margin: 0;
    font-size: 12px;
    color: #666;
}
