* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0e6 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #d63384;
    font-size: 42px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.1);
}

/* Main Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Left Side - Video */
.main-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(214, 51, 132, 0.15);
    border: 3px solid rgba(255, 182, 193, 0.5);
}

video, canvas {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(-1);
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.controls {
    text-align: center;
}

button {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.6);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stage-status {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
}

.stage-status p {
    font-size: 20px;
    font-weight: 600;
    color: #d63384;
}

/* Right Side - Stats */
.side-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Timer + Accuracy Row */
.timer-accuracy-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.timer-display, .accuracy-display {
    background: rgba(255, 182, 193, 0.3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.15);
    border: 2px solid rgba(255, 182, 193, 0.4);
}

.timer-value {
    font-size: 52px;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(214, 51, 132, 0.1);
}

.timer-label {
    font-size: 16px;
    color: #d63384;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

#accuracy {
    font-size: 56px;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(214, 51, 132, 0.1);
}

.accuracy-label {
    font-size: 16px;
    color: #d63384;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

#accuracy.good {
    color: #20c997;
}

#accuracy.warning {
    color: #fd7e14;
}

#accuracy.bad {
    color: #dc3545;
}

/* Feedback Panel - LARGER and MORE VISIBLE */
.feedback {
    background: rgba(255, 255, 255, 0.85);
    padding: 35px;
    border-radius: 15px;
    min-height: 300px;
    box-shadow: 0 6px 25px rgba(214, 51, 132, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.4);
}

.feedback-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feedback-item {
    padding: 22px 28px;
    border-radius: 12px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.feedback-item:not(.good) {
    background: rgba(255, 77, 77, 0.15);
    color: #c92a2a;
    border: 2px solid rgba(255, 77, 77, 0.3);
}

.feedback-item.good {
    background: rgba(64, 192, 87, 0.15);
    color: #2b8a3e;
    border: 2px solid rgba(64, 192, 87, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.stat-tile {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.15);
    border: 2px solid rgba(255, 182, 193, 0.4);
}

.stat-tile h3 {
    color: #d63384;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #d63384;
    font-weight: 600;
    font-size: 16px;
}

.stat-value {
    color: #ff69b4;
    font-weight: bold;
    font-size: 18px;
}

/* Progress Chart */
.progress-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.15);
    border: 2px solid rgba(255, 182, 193, 0.4);
}

.progress-section h3 {
    color: #d63384;
    margin-bottom: 20px;
    font-size: 26px;
    text-align: center;
}

.progress-chart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.pose-progress {
    text-align: center;
    padding: 20px;
    background: rgba(255, 240, 245, 0.5);
    border-radius: 12px;
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.pose-progress h4 {
    color: #d63384;
    font-size: 18px;
    margin-bottom: 15px;
}

.improvement-indicator {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.improvement-indicator.up {
    color: #20c997;
}

.improvement-indicator.down {
    color: #dc3545;
}

.improvement-indicator.same {
    color: #6c757d;
}

.improvement-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

/* Session History */
.session-history {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.15);
    border: 2px solid rgba(255, 182, 193, 0.4);
}

.session-history h3 {
    color: #d63384;
    margin-bottom: 20px;
    font-size: 24px;
}

.history-item {
    background: rgba(255, 240, 245, 0.4);
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.history-date {
    color: #d63384;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    font-size: 14px;
    color: #6c757d;
}

/* Summary Actions */
.summary-actions {
    text-align: center;
    margin-top: 30px;
}

.summary-actions button {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-chart {
        grid-template-columns: 1fr;
    }
}