/* Mobile-First Design per Taekwondo WT Trainer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
    color: #1f2937;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-title i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Header Menu */
.header-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: rgba(30, 64, 175, 0.95);
    backdrop-filter: blur(10px);
}

.header-menu.active {
    max-height: 300px;
    padding-top: 1rem;
}

.header-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mode-selector {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mode-btn.active {
    background: white;
    color: #1e40af;
    border-color: white;
}

.session-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.timer-display,
.calorie-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    min-width: 100px;
    justify-content: center;
}

.session-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.control-btn {
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.start-btn {
    background: #10b981;
    color: white;
}

.start-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.pause-btn {
    background: #f59e0b;
    color: white;
}

.pause-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

.stop-btn {
    background: #ef4444;
    color: white;
}

.stop-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Tab Navigation */
.tab-navigation {
    background: white;
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 68px;
    z-index: 90;
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    color: #6b7280;
}

.tab-button:hover {
    background: #f9fafb;
    color: #1e40af;
}

.tab-button.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
    background: #eff6ff;
}

.tab-button i {
    font-size: 1.25rem;
}

.tab-button span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    background: #f8fafc;
    padding: 1rem;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.content-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.content-header p {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* Technique Sections */
.technique-sections {
    padding: 2rem;
}

.technique-section {
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.section-header:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i:last-child {
    transition: transform 0.2s;
}

.technique-section.expanded .section-header i:last-child {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #f8fafc;
}

.technique-section.expanded .section-content {
    max-height: 2000px;
    padding: 1.5rem;
}

.technique-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.technique-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.technique-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.technique-info {
    flex: 1;
}

.technique-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.korean {
    font-style: italic;
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.technique-type {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.level-base {
    background: #dcfce7;
    color: #166534;
}

.level-intermedio {
    background: #fef3c7;
    color: #92400e;
}

.level-avanzato {
    background: #fee2e2;
    color: #991b1b;
}

/* Combinations */
.combinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.combination-level h4 {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e40af;
}

.combination-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.combination-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.combination-item h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sequence-step {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

/* Poomsae Styles */
.poomsae-sections {
    padding: 2rem;
}

.poomsae-section {
    margin-bottom: 3rem;
}

.poomsae-section .section-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.poomsae-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.poomsae-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.poomsae-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.poomsae-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.poomsae-header h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.poomsae-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.belt-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.belt-badge {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.belt-badge.black {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.kup-badge,
.dan-badge {
    background: #fbbf24;
    color: #92400e;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.movements-info,
.symbol-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.poomsae-description,
.poomsae-meaning {
    color: #4b5563;
    line-height: 1.6;
    text-align: center;
}

.poomsae-meaning {
    font-style: italic;
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Workout Styles */
.workout-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.workout-card-large {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.workout-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.workout-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.workout-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.workout-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.workout-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.intensity {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.intensity.bassa {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.intensity.media {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
}

.intensity.alta {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.intensity.molto-alta {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
}

.workout-content {
    padding: 1.5rem;
}

.workout-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.workout-structure h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exercise-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.exercise-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.exercise-list li:last-child {
    border-bottom: none;
}

.start-workout-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-workout-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
}

/* Calorie Calculator */
.calorie-calculator {
    padding: 2rem;
}

.calculator-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.calorie-result {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    text-align: center;
}

.calorie-result h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.result-display {
    margin-bottom: 2rem;
}

.calorie-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.calorie-label {
    color: #6b7280;
    font-size: 1.125rem;
}

.result-chart {
    height: 300px;
    position: relative;
}

/* Statistics */
.stats-dashboard {
    padding: 2rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.chart-container h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-container canvas {
    max-height: 300px;
}

.belt-progress {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.belt-progress h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-info {
    max-width: 600px;
    margin: 0 auto;
}

.current-belt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.belt-name {
    color: #1e40af;
}

.next-belt {
    color: #6b7280;
}

.progress-bar {
    background: #f3f4f6;
    height: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Export Section */
.export-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.export-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.export-btn {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.config-section {
    margin-bottom: 2rem;
}

.config-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.workout-card {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.workout-card:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.workout-card.selected {
    border-color: #1e40af;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.workout-card i {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.workout-card h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.workout-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.modal-footer {
    background: #f8fafc;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 1rem;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .session-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timer-display,
    .calorie-display {
        min-width: auto;
    }
    
    .tab-button {
        min-width: 80px;
        padding: 0.75rem 0.5rem;
    }
    
    .tab-button span {
        font-size: 0.75rem;
    }
    
    .content-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .technique-sections,
    .poomsae-sections,
    .stats-dashboard,
    .calorie-calculator {
        padding: 1rem;
    }
    
    .combinations-grid {
        grid-template-columns: 1fr;
    }
    
    .poomsae-grid {
        grid-template-columns: 1fr;
    }
    
    .workout-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .calculator-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .workout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .workout-grid {
        grid-template-columns: 1fr;
    }
    
    .current-belt {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* Chart Container Fixes */
.chart-container canvas {
    max-width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Technique GIF Modal Styles */
#techniqueGifModal .modal-content {
    max-width: 500px; /* Adjust as needed */
}

#techniqueGifModal .modal-body {
    text-align: center;
}

#techniqueGifImage {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure it takes full width */
    margin: 0 auto; /* Center the image */
}




/* Workout Selection with Radio Buttons */
.workout-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workout-option {
    position: relative;
}

.workout-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.workout-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.workout-label:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.workout-option input[type="radio"]:checked + .workout-label {
    border-color: #1e40af;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.workout-label i {
    font-size: 2rem;
    color: #1e40af;
    min-width: 3rem;
    text-align: center;
}

.workout-details h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.workout-details p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .workout-selection {
        gap: 0.75rem;
    }
    
    .workout-label {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .workout-label i {
        font-size: 1.5rem;
        min-width: 2.5rem;
    }
}

