
#rm-calculator {
    padding: 4rem;
}

/* 1RM Calculator Layout */
.rm-calculator-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .rm-calculator-layout {
        flex-direction: row;
        gap: 2rem;
    }
}

/* Input Section */
.rm-input-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .rm-input-section {
        width: 50%;
    }
}

/* Result Section */
.rm-result-section {
    width: 100%;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .rm-result-section {
        width: 50%;
        margin-top: 0;
    }
}

/* Input Groups */
.rm-input-group {
    display: flex;
    flex-direction: column;
}

.rm-input-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

@media (min-width: 640px) {
    .rm-input-label {
        font-size: 1.125rem;
    }
}

/* Slider Container */
.rm-slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Slider Wrapper */
.rm-slider-wrapper {
    position: relative;
    width: 100%;
    height: 0.5rem;
    margin: 1rem 0;
}

/* Slider Track */
.rm-slider-track {
    position: absolute;
    width: 100%;
    height: 0.5rem;
    background: rgba(63, 63, 70, 1);
    border-radius: 9999px;
    overflow: hidden;
}

/* Slider Fill */
.rm-slider-fill {
    position: absolute;
    height: 0.5rem;
    background: linear-gradient(90deg, #ff8c00, #ffa500);
    border-radius: 9999px;
    transition: width 0.2s ease;
}

/* Slider Thumb */
.rm-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background: #ff8c00;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rm-slider-thumb:hover {
    transform: translateY(-50%) translateX(-50%) scale(1.1);
}

/* Hidden Native Slider */
.rm-slider {
    position: absolute;
    width: 100%;
    height: 0.5rem;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Slider Labels */
.rm-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

@media (min-width: 640px) {
    .rm-slider-labels {
        font-size: 0.875rem;
    }
}

/* Input Display */
.rm-input-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rm-number-input {
    width: 4rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
    background: rgba(63, 63, 70, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .rm-number-input {
        width: 5rem;
        font-size: 1rem;
    }
}

.rm-number-input:focus {
    outline: none;
    border-color: #ff8c00;
}

.rm-unit {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff8c00;
}

@media (min-width: 640px) {
    .rm-unit {
        font-size: 1.5rem;
    }
}

/* Result Card */
.rm-result-card {
    background: rgba(63, 63, 70, 0.3);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

@media (min-width: 640px) {
    .rm-result-card {
        padding: 2rem;
    }
}

.rm-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f3f4f6;
}

@media (min-width: 640px) {
    .rm-result-title {
        font-size: 1.875rem;
    }
}

.rm-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .rm-result-value {
        font-size: 3.75rem;
    }
}

.rm-result-subtitle {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .rm-result-subtitle {
        font-size: 1.125rem;
    }
}

/* Progress Bar */
.rm-progress-bar {
    width: 100%;
    height: 1rem;
    background: rgba(63, 63, 70, 1);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: auto;
}

.rm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #ffa500);
    border-radius: 9999px;
    transition: width 0.3s ease;
    width: 0;
}

/* Other RM Values */
.rm-other-values {
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .rm-other-values {
        margin-top: 3rem;
    }
}

.rm-other-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f4f6;
}

@media (min-width: 640px) {
    .rm-other-title {
        font-size: 1.5rem;
    }
}

.rm-chart-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    color: #ff8c00;
}

@media (min-width: 640px) {
    .rm-chart-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* RM Values Grid */
.rm-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .rm-values-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.rm-value-card {
    background: rgba(63, 63, 70, 0.3);
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .rm-value-card {
        padding: 1rem;
    }
}

.rm-value-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #f3f4f6;
}

@media (min-width: 640px) {
    .rm-value-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
}

.rm-value-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ff8c00;
    margin: 0;
}

@media (min-width: 640px) {
    .rm-value-number {
        font-size: 1.25rem;
    }
}

.rm-value-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .rm-value-subtitle {
        font-size: 0.875rem;
    }
}

/* Calculator Main Title */
.calculator-main-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #ff8c00;
}

@media (min-width: 640px) {
    .calculator-main-title {
        font-size: 2.25rem;
    }
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.info-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    border-collapse: collapse;
}

@media (min-width: 640px) {
    .info-table {
        font-size: 1rem;
    }
}

.info-table thead {
    background: rgba(39, 39, 42, 0.8);
}

.info-table th,
.info-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.7);
}

.info-table th {
    color: #ff8c00;
    font-weight: 600;
}

.info-table td {
    color: #d1d5db;
}

.info-table tbody tr:hover {
    background: rgba(63, 63, 70, 0.2);
}

/* Training Cards */
.training-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .training-cards {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.training-card {
    background: rgba(63, 63, 70, 0.3);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .training-card {
        padding: 1rem;
    }
}

.training-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

@media (min-width: 640px) {
    .training-card-title {
        font-size: 1.125rem;
    }
}

.training-card-text {
    font-size: 0.75rem;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 640px) {
    .training-card-text {
        font-size: 0.875rem;
    }
}

/* Formula Card */
.formula-card {
    background: rgba(63, 63, 70, 0.3);
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

@media (min-width: 640px) {
    .formula-card {
        padding: 1.5rem;
    }
}

.formula-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

@media (min-width: 640px) {
    .formula-title {
        font-size: 1.125rem;
    }
}

.formula-equation {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ff8c00;
    margin: 0.5rem 0;
}

@media (min-width: 640px) {
    .formula-equation {
        font-size: 1.125rem;
    }
}

.formula-description {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 640px) {
    .formula-description {
        font-size: 0.875rem;
    }
}

/* Safety Note */
.safety-note {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 1rem 0 0 0;
}

@media (min-width: 640px) {
    .safety-note {
        font-size: 0.875rem;
    }
}