body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #181a20;
    color: #fff;
}
.container {
    display: flex;
    height: 100vh;
}
.sidebar {
    width: 220px;
    background: #23252b;
    padding: 24px 0 0 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}
.sidebar h2 {
    color: #ffb300;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
#exercise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#exercise-list li {
    padding: 16px 24px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}
#exercise-list li.active, #exercise-list li:hover {
    background: #ffb300;
    color: #181a20;
}
.main-content {
    flex: 1;
    padding: 40px 60px;
    background: #23252b;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-content h1 {
    color: #3fa9f5;
    margin-bottom: 32px;
    font-size: 2.2rem;
}
#analysis-area {
    width: 600px;
    min-height: 400px;
    background: #181a20;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    padding: 32px;
    margin-top: 16px;
}
.video-area {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 4/3;
    margin: 0 auto 24px auto;
    background: #222;
}
.video-area video, .video-area canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
}
.video-area video {
    z-index: 1;
    object-fit: cover;
}
.video-area canvas {
    z-index: 2;
    pointer-events: none;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.controls select, .controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #ffb300;
    color: #181a20;
    font-weight: bold;
    cursor: pointer;
}

.controls select:hover, .controls button:hover {
    background: #ffc233;
}

.preview-area {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #181a20;
    border-radius: 12px;
}

.preview-area h3 {
    color: #ffb300;
    margin-bottom: 20px;
    text-align: center;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.preview-item {
    background: #23252b;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.preview-item h4 {
    color: #fff;
    margin-bottom: 10px;
}

.preview-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.analysis-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
}

.status-text {
    color: #4CAF50;
    font-weight: 500;
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.analysis-details, .analysis-results {
    background: #23252b;
    padding: 20px;
    border-radius: 8px;
}

.analysis-details h4, .analysis-results h4 {
    color: #ffb300;
    margin-bottom: 15px;
}

.measurements {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.measurement-item {
    background: #181a20;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.measurement-label {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.measurement-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.measurement-value.good {
    color: #4CAF50;
}

.measurement-value.warning {
    color: #ffb300;
}

.measurement-value.bad {
    color: #f44336;
}

/* Mobil/Masaüstü Toggle için */
body.mobile .container,
body.mobile .main-content,
body.mobile .sidebar,
body.mobile .video-area,
body.mobile .preview-area,
body.mobile .analysis-header,
body.mobile .analysis-content,
body.mobile .preview-grid,
body.mobile .measurements {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}
body.mobile .sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    padding: 60px 8px 8px 8px !important;
    font-size: 1rem !important;
    order: 2;
}
body.mobile .main-content {
    padding: 6px !important;
    order: 1;
}
body.mobile .video-area {
    margin-bottom: 12px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    aspect-ratio: 9/16 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #181a20 !important;
    position: relative !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    border-radius: 16px !important;
    margin-top: 10px !important;
}
body.mobile .video-area video,
body.mobile .video-area canvas {
    max-width: 100vw !important;
    width: 100vw !important;
    height: auto !important;
    aspect-ratio: 9/16 !important;
    min-height: 60vh !important;
    max-height: 90vh !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 16px !important;
    object-fit: cover !important;
    background: #222 !important;
    z-index: 1;
}
body.mobile .controls {
    display: none !important;
}

#mobile-capture-btn {
    /* JS ile stiller atanıyor, burada sadece fallback */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffb300;
    color: #181a20;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border: none;
    z-index: 1001;
    transition: background 0.2s;
}
body.mobile .preview-area {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 8px !important;
    background: transparent !important;
}
body.mobile .preview-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center !important;
}
body.mobile .preview-item {
    min-width: 90px !important;
    max-width: 120px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    background: #23252b !important;
}
body.mobile .preview-image {
    aspect-ratio: 9/16 !important;
    min-height: 90px !important;
    border-radius: 6px !important;
}
body.mobile .analysis-header,
body.mobile .analysis-content,
body.mobile .analysis-details,
body.mobile .analysis-results {
    background: transparent !important;
    padding: 0 !important;
}
body.mobile #analysis-area {
    width: 100vw !important;
    min-width: 0 !important;
    padding: 8px !important;
    margin-top: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.mobile .measurements {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}
body.mobile .measurement-item {
    padding: 8px !important;
    border-radius: 6px !important;
    background: #23252b !important;
}
body.mobile .logo-container {
    top: 8px !important;
    left: 8px !important;
}
body.mobile .logo {
    width: 36px !important;
    height: 36px !important;
}