/**
 * GroundX Workout Roulette - Frontend Styles
 */

/* ===== ROULETTE ===== */
.gx-roulette-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.gx-roulette-wrapper {
    position: relative;
    margin: 0 auto 30px;
}

/* Wheel */
.gx-wheel {
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.gx-wheel-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.gx-wheel-segment {
    cursor: pointer;
    transition: opacity 0.2s;
}

.gx-wheel-segment:hover {
    opacity: 0.9;
}

.gx-wheel-text {
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Pointer */
.gx-wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Spin Button */
.gx-spin-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #d35400 100%) !important;
    color: #fff !important;
    border: 5px solid #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    z-index: 20 !important;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.3),
        0 0 30px rgba(243, 156, 18, 0.4),
        inset 0 2px 10px rgba(255,255,255,0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: unset !important;
    min-height: unset !important;
}

.gx-spin-button:hover {
    transform: translate(-50%, -50%) scale(1.08) !important;
    box-shadow: 
        0 6px 25px rgba(0,0,0,0.4),
        0 0 40px rgba(243, 156, 18, 0.6),
        inset 0 2px 10px rgba(255,255,255,0.3) !important;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #e67e22 100%) !important;
}

.gx-spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gx-spin-button.spinning {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Result */
.gx-result {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gx-result-title {
    margin: 0 0 15px;
    font-size: 24px;
    color: #2c3e50;
}

/* Result Meta Cards */
.gx-result-meta-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gx-result-meta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
}

.gx-result-meta-card .gx-meta-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
}

.gx-result-meta-card .gx-meta-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.gx-result-meta-card .gx-meta-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 3px;
}

.gx-result-meta-card.gx-meta-target {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
}

.gx-result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.gx-result-actions .button,
.gx-result-actions a.button {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
}

.gx-start-workout {
    background: #27ae60 !important;
    color: #fff !important;
    border: none !important;
}

.gx-start-workout:hover {
    background: #219a52 !important;
}

/* Legend */
.gx-legend {
    text-align: left;
}

.gx-legend h4 {
    margin: 0 0 15px;
    color: #fff;
}

.gx-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gx-legend-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
}

.gx-legend-item .gx-legend-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gx-legend-name {
    color: #fff;
    font-weight: 600;
}

.gx-legend-item.inactive {
    opacity: 0.5;
}

.gx-legend-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

.gx-legend-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    flex-wrap: wrap;
    margin-left: 32px;
}

.gx-legend-stat {
    white-space: nowrap;
}

.gx-legend-target {
    color: #f39c12;
    font-weight: 600;
}

@media (max-width: 700px) {
    .gx-legend-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .gx-legend-list {
        grid-template-columns: 1fr;
    }
    
    .gx-legend-stats {
        margin-left: 0;
    }
}


/* ===== WORKOUT ===== */
.gx-workout-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Workout Header */
.gx-workout-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gx-workout-back {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

.gx-workout-back .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.gx-workout-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gx-workout-slot {
    background: rgba(255,255,255,0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.gx-workout-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gx-workout-settings-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

/* Info Bar */
.gx-workout-info {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.gx-info-item {
    text-align: center;
}

.gx-info-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gx-info-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* States */
.gx-workout-state {
    padding: 20px;
}

/* Preview State */
.gx-workout-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gx-zones-preview {
    margin-bottom: 25px;
}

.gx-zone-preview {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gx-zone-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f5f6f7;
    border-bottom: 1px solid #eee;
}

.gx-zone-preview .gx-zone-number {
    background: #2c3e50;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.gx-zone-preview .gx-zone-name {
    font-weight: 500;
}

.gx-exercises-preview {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gx-exercises-preview li {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.gx-exercises-preview li:last-child {
    border-bottom: none;
}

.gx-exercise-name {
    color: #2c3e50;
}

.gx-exercise-detail {
    color: #888;
    font-size: 13px;
}

.gx-start-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gx-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.gx-start-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Active State */
#gx-state-active {
    padding: 0;
}

.gx-progress-container {
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.gx-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.gx-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 3px;
    transition: width 0.3s;
}

.gx-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

/* Current Exercise */
.gx-current-exercise {
    padding: 30px 20px;
    text-align: center;
    background: #fff;
}

.gx-exercise-display h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #2c3e50;
}

/* Timer Circle */
.gx-timer-display {
    margin: 30px 0;
}

.gx-timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.gx-timer-circle svg {
    transform: rotate(-90deg);
}

.gx-timer-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.gx-timer-progress {
    fill: none;
    stroke: #27ae60;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.gx-timer-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
}

.gx-exercise-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 16px;
}

.gx-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
}

/* Next Exercise Preview */
.gx-next-exercise {
    background: #f5f6f7;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gx-next-label {
    color: #888;
    font-size: 13px;
}

.gx-next-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Controls */
.gx-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.gx-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    transition: transform 0.2s;
}

.gx-control-btn:hover {
    transform: scale(1.1);
}

.gx-control-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.gx-skip-btn {
    background: #f39c12;
    color: #fff;
}

.gx-pause-btn {
    background: #3498db;
    color: #fff;
    width: 80px;
    height: 80px;
}

.gx-pause-btn .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.gx-stop-btn {
    background: #e74c3c;
    color: #fff;
}

/* Pause States */
.gx-pause-state,
.gx-circuit-pause-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.gx-pause-content,
.gx-circuit-pause-content {
    padding: 40px;
}

.gx-pause-state h2,
.gx-circuit-pause-state h2 {
    margin: 0 0 20px;
    font-size: 32px;
}

.gx-pause-timer,
.gx-circuit-timer {
    font-size: 80px;
    font-weight: 700;
    margin: 30px 0;
    font-variant-numeric: tabular-nums;
}

.gx-pause-next,
.gx-circuit-pause-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.gx-skip-pause-btn,
.gx-skip-circuit-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.gx-skip-pause-btn:hover,
.gx-skip-circuit-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Circuit Pause - Yellow */
.gx-circuit-pause-state {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Complete State */
.gx-complete-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: #fff;
}

.gx-complete-content {
    padding: 40px;
}

.gx-complete-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.gx-complete-content h2 {
    margin: 0 0 30px;
    font-size: 28px;
}

.gx-complete-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.gx-stat {
    text-align: center;
}

.gx-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.gx-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.gx-complete-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gx-btn-primary,
.gx-btn-secondary {
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.gx-btn-primary {
    background: #fff;
    color: #27ae60;
    border: none;
}

.gx-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.gx-btn-primary:hover,
.gx-btn-secondary:hover {
    transform: scale(1.05);
}

/* Settings Modal */
.gx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.gx-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 350px;
    width: 90%;
    position: relative;
}

.gx-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.gx-modal-content h3 {
    margin: 0 0 20px;
}

.gx-setting-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.gx-setting-item:last-child {
    border-bottom: none;
}

.gx-setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.gx-setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Error State */
.gx-workout-error {
    padding: 40px;
    text-align: center;
    color: #666;
}

.gx-workout-error a {
    color: #3498db;
}

/* Mobile Optimierungen */
@media (max-width: 480px) {
    .gx-roulette-wrapper {
        width: 320px !important;
        height: 320px !important;
    }
    
    .gx-spin-button {
        width: 65px;
        height: 65px;
        font-size: 12px;
    }
    
    .gx-timer-circle {
        width: 160px;
        height: 160px;
    }
    
    .gx-timer-value {
        font-size: 36px;
    }
    
    .gx-exercise-display h2 {
        font-size: 20px;
    }
    
    .gx-pause-timer,
    .gx-circuit-timer {
        font-size: 60px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gx-workout-container {
        background: #1a1a1a;
    }
    
    .gx-workout-info,
    .gx-current-exercise,
    .gx-zone-preview,
    .gx-controls {
        background: #2d2d2d;
    }
    
    .gx-info-value,
    .gx-exercise-display h2,
    .gx-timer-value,
    .gx-exercise-name,
    .gx-next-name {
        color: #fff;
    }
    
    .gx-zone-preview-header {
        background: #383838;
    }
}


/* ===== SPINFIT TIMER SECTION ===== */
.gx-timer-section {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gx-timer-circle-large {
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.gx-timer-value-large {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.gx-timer-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Plan Info */
.gx-plan-info {
    padding: 25px 20px;
    background: #fff;
    text-align: center;
}

.gx-plan-info h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 20px;
}

.gx-plan-info p {
    color: #666;
    margin: 0 0 15px;
}

.gx-plan-meta-simple {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    color: #888;
}

/* Plan Meta Cards */
.gx-plan-meta-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.gx-meta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gx-meta-card .gx-meta-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.gx-meta-card .gx-meta-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.gx-meta-card .gx-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Zeitvorgabe Card - hervorgehoben */
.gx-meta-card.gx-meta-target {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
}

.gx-zones-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gx-zone-mini {
    background: #f5f6f7;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.gx-zone-num {
    background: #667eea;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.gx-zone-title {
    font-weight: 500;
    color: #2c3e50;
}

.gx-zone-count {
    color: #888;
}

/* Control Buttons */
.gx-controls-section {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
}

.gx-btn-start,
.gx-btn-stop {
    padding: 20px 60px;
    font-size: 24px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gx-btn-start {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.gx-btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.5);
}

.gx-btn-stop {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.gx-btn-stop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5);
}

.gx-btn-start .dashicons,
.gx-btn-stop .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Leaderboard Link */
.gx-leaderboard-link {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.gx-leaderboard-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.gx-leaderboard-link a:hover {
    text-decoration: underline;
}


/* ===== FINISH MODAL ===== */
.gx-finish-content {
    max-width: 420px;
    text-align: center;
}

.gx-finish-header {
    margin-bottom: 25px;
}

.gx-finish-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.gx-finish-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
}

.gx-finish-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    color: #fff;
}

.gx-stat-big .gx-stat-value {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.gx-stat-big .gx-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.gx-stat-small {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.gx-leaderboard-form h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2c3e50;
}

.gx-leaderboard-form .gx-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.gx-leaderboard-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.gx-leaderboard-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.gx-leaderboard-form input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
}

.gx-consent-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

.gx-consent-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.gx-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gx-btn-save,
.gx-btn-skip {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.gx-btn-save {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.gx-btn-save:hover {
    transform: translateY(-2px);
}

.gx-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gx-btn-skip {
    background: #f5f5f5;
    color: #666;
}

.gx-btn-skip:hover {
    background: #eee;
}

.gx-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.gx-form-message.success {
    background: #d4edda;
    color: #155724;
}

.gx-form-message.error {
    background: #f8d7da;
    color: #721c24;
}


/* ===== LEADERBOARD ===== */
.gx-leaderboard-section,
.gx-leaderboard-standalone {
    padding: 30px 20px;
    background: #fff;
    margin-top: 20px;
}

.gx-leaderboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.gx-leaderboard-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.gx-leaderboard-filter {
    display: flex;
    gap: 5px;
}

.gx-filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.gx-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.gx-filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.gx-leaderboard-empty {
    text-align: center;
    padding: 40px;
    color: #888;
}

.gx-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

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

.gx-scores-table th,
.gx-scores-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.gx-scores-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gx-scores-table tbody tr:hover {
    background: #f8f9fa;
}

.gx-scores-table .gx-top-three {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
}

.gx-col-rank {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

.gx-col-name {
    font-weight: 500;
    color: #2c3e50;
}

.gx-col-plan {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gx-plan-badge {
    background: #667eea;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.gx-col-time {
    font-variant-numeric: tabular-nums;
}

.gx-col-date {
    color: #888;
    font-size: 13px;
}

/* Responsive Leaderboard */
@media (max-width: 600px) {
    .gx-leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gx-scores-table th,
    .gx-scores-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .gx-col-date {
        display: none;
    }
    
    .gx-col-plan {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .gx-timer-value-large {
        font-size: 44px;
    }
    
    .gx-timer-circle-large {
        width: 180px;
        height: 180px;
    }
    
    .gx-btn-start,
    .gx-btn-stop {
        padding: 16px 40px;
        font-size: 20px;
    }
}


/* ===== ACHIEVEMENT NOTIFICATION ===== */
.gx-achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    max-width: 90vw;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 100000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gx-achievement-notification.show {
    right: 20px;
}

.gx-achievement-notification .gx-achievement-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.gx-achievement-notification .gx-achievement-info {
    flex: 1;
}

.gx-achievement-notification .gx-achievement-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.gx-achievement-notification .gx-achievement-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gx-achievement-notification .gx-achievement-desc {
    font-size: 13px;
    opacity: 0.9;
}


/* ===== ACHIEVEMENTS PAGE ===== */
.gx-achievements-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.gx-achievements-header {
    text-align: center;
    margin-bottom: 30px;
}

.gx-achievements-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #2c3e50;
}

.gx-achievements-subtitle {
    color: #666;
    margin: 0;
}

.gx-nickname-check,
.gx-nickname-input {
    max-width: 400px;
    margin: 0 auto 30px;
}

.gx-input-with-btn {
    display: flex;
    gap: 10px;
}

.gx-input-with-btn input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.gx-input-with-btn input:focus {
    border-color: #667eea;
    outline: none;
}

.gx-btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.gx-btn-primary:hover {
    transform: translateY(-2px);
}

.gx-user-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.gx-stat-item {
    text-align: center;
}

.gx-user-stats .gx-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.gx-user-stats .gx-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.gx-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.gx-achievement-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gx-achievement-card.unlocked {
    border-color: #27ae60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(39, 174, 96, 0.1) 100%);
}

.gx-achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(50%);
}

.gx-achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gx-achievement-card .gx-achievement-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.gx-achievement-card .gx-achievement-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.gx-achievement-card .gx-achievement-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.gx-achievement-card .gx-achievement-points {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.gx-achievement-card .gx-achievement-date {
    font-size: 11px;
    color: #27ae60;
    margin-top: 8px;
}


/* ===== TEAMS PAGE ===== */
.gx-teams-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.gx-teams-header {
    text-align: center;
    margin-bottom: 30px;
}

.gx-teams-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #2c3e50;
}

.gx-teams-subtitle {
    color: #666;
    margin: 0;
}

.gx-user-team-section {
    margin-bottom: 40px;
}

.gx-team-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gx-btn-create,
.gx-btn-join {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.gx-btn-create {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.gx-btn-join {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.gx-btn-create:hover,
.gx-btn-join:hover {
    transform: translateY(-2px);
}

.gx-my-team-card {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gx-team-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.gx-my-team-card h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #2c3e50;
}

.gx-team-role {
    font-size: 13px;
    color: #666;
}

.gx-invite-code {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

.gx-invite-code strong {
    color: #667eea;
    font-family: monospace;
    letter-spacing: 1px;
}

.gx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.gx-section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.gx-team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gx-team-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gx-team-row.top-three {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
}

.gx-team-rank {
    font-size: 20px;
    font-weight: 700;
    width: 40px;
    text-align: center;
}

.gx-team-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.gx-team-details {
    flex: 1;
}

.gx-team-name {
    font-weight: 600;
    color: #2c3e50;
}

.gx-team-meta {
    font-size: 12px;
    color: #888;
}

.gx-team-time {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

/* Modal */
.gx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.gx-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.gx-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gx-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.gx-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.gx-modal-body {
    padding: 20px;
}

.gx-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.gx-color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gx-color-picker label {
    cursor: pointer;
}

.gx-color-picker input {
    display: none;
}

.gx-color-picker span {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.gx-color-picker input:checked + span {
    border-color: #2c3e50;
    transform: scale(1.1);
}

.gx-help-text {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}


/* ===== PWA INSTALL BUTTON ===== */
.gx-pwa-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: transform 0.2s;
}

.gx-pwa-install-btn:hover {
    transform: translateY(-3px);
}

/* iOS Install Hinweis */
.gx-ios-install-hint {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 40px 12px 15px;
    border-radius: 10px;
    margin: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gx-ios-hint-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.gx-ios-hint-close:hover {
    color: #fff;
}

.gx-ios-hint-icon {
    font-size: 24px;
}

.gx-ios-hint-text {
    flex: 1;
}

.gx-ios-share-icon {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 3px;
}


/* ===== STATS PAGE ===== */
.gx-stats-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.gx-stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.gx-stats-header h2 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #2c3e50;
}

.gx-stats-subtitle {
    color: #666;
    margin: 0;
}

.gx-nickname-check {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.gx-input-with-btn {
    display: flex;
    gap: 10px;
}

.gx-input-with-btn input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.gx-input-with-btn input:focus {
    border-color: #667eea;
    outline: none;
}

/* Stats Cards */
.gx-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gx-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.gx-stat-card:hover {
    transform: translateY(-3px);
}

.gx-stat-card.gx-stat-streak {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
}

.gx-stat-card.gx-stat-streak .gx-stat-label,
.gx-stat-card.gx-stat-streak .gx-stat-sub {
    color: rgba(255,255,255,0.9);
}

.gx-stat-icon {
    font-size: 40px;
}

.gx-stat-info {
    display: flex;
    flex-direction: column;
}

.gx-stat-card .gx-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.gx-stat-card .gx-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.gx-stat-card .gx-stat-sub {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Stats Sections */
.gx-stats-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gx-stats-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #2c3e50;
}

.gx-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gx-stats-section.gx-half {
    margin-bottom: 0;
}

/* Achievement Progress */
.gx-achievement-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gx-progress-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.gx-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.gx-progress-text {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Plans Progress Grid */
.gx-plans-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.gx-plan-slot {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.2s;
}

.gx-plan-slot.empty {
    background: #f0f0f0;
    color: #999;
}

.gx-plan-slot.completed {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.gx-plan-slot .gx-slot-number {
    font-weight: 700;
    font-size: 16px;
}

.gx-plan-slot .gx-slot-count {
    font-size: 10px;
    opacity: 0.8;
}

.gx-plans-summary {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* Workout Cards */
.gx-workout-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.gx-workout-plan {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.gx-workout-time {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.gx-workout-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.gx-no-data {
    color: #999;
    font-style: italic;
}

/* Team Leave Button */
.gx-leave-team-btn {
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background 0.2s;
}

.gx-leave-team-btn:hover {
    background: #c02020;
}

.gx-my-team-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 30px;
}

.gx-my-team-section h3 {
    margin: 0 0 10px;
    color: #fff;
}

.gx-my-team-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.gx-team-name-large {
    font-size: 24px;
    font-weight: 700;
}

.gx-team-role {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* Push Notification Button */
.gx-push-enable-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gx-push-enable-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Streak Badge in Roulette */
.gx-streak-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
    z-index: 10;
}


/* Responsive */
@media (max-width: 768px) {
    .gx-stats-row {
        grid-template-columns: 1fr;
    }
    
    .gx-plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 500px) {
    .gx-achievement-notification {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .gx-achievement-notification.show {
        right: 20px;
    }
    
    .gx-team-actions {
        flex-direction: column;
    }
    
    .gx-team-row {
        flex-wrap: wrap;
    }
    
    .gx-team-time {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
    
    .gx-user-stats {
        gap: 20px;
    }
    
    .gx-user-stats .gx-stat-value {
        font-size: 24px;
    }
    
    .gx-stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .gx-stat-card .gx-stat-value {
        font-size: 24px;
    }
    
    .gx-input-with-btn {
        flex-direction: column;
    }
    
    .gx-plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gx-plan-meta-cards {
        gap: 10px;
    }
    
    .gx-meta-card {
        padding: 12px 15px;
        min-width: 75px;
    }
    
    .gx-meta-card .gx-meta-icon {
        font-size: 20px;
    }
    
    .gx-meta-card .gx-meta-value {
        font-size: 22px;
    }
    
    .gx-meta-card .gx-meta-label {
        font-size: 9px;
    }
}

/* ===== ÜBUNGSLISTE IN ZONEN ===== */
.gx-zone-detail {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gx-zone-header-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.gx-zone-header-mini .gx-zone-num {
    background: rgba(255,255,255,0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.gx-zone-header-mini .gx-zone-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.gx-zone-header-mini .gx-zone-count {
    font-size: 12px;
    opacity: 0.9;
}

.gx-zone-header-mini .gx-zone-time {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 10px;
}

.gx-exercise-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gx-exercise-item-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.gx-exercise-item-mini:last-child {
    border-bottom: none;
}

.gx-exercise-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.gx-exercise-detail {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* ===== AKTIVE ZONE SCREEN ===== */
.gx-active-zone-screen {
    padding: 15px;
}

.gx-progress-container {
    margin-bottom: 15px;
}

.gx-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gx-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.gx-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

/* Zeit-Differenz Popup */
.gx-time-diff-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: #fff;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.gx-time-diff-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gx-time-diff-popup .gx-diff-value {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.gx-time-diff-popup .gx-diff-label {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

.gx-time-diff-popup.under .gx-diff-value {
    color: #27ae60;
}

.gx-time-diff-popup.over .gx-diff-value {
    color: #e74c3c;
}

/* Gesamt-Differenz Anzeige */
.gx-total-diff {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.gx-total-diff-label {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
}

.gx-total-diff-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.gx-total-diff-value.under {
    color: #27ae60;
}

.gx-total-diff-value.over {
    color: #e74c3c;
}

/* Aktive Zone Card */
.gx-active-zone-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

.gx-zone-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.gx-zone-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

/* Zone Timer Circle */
.gx-zone-timer-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.gx-timer-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.gx-timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gx-timer-track {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.gx-timer-progress {
    fill: none;
    stroke: #667eea;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.gx-timer-progress.over-target {
    stroke: #e74c3c;
}

.gx-timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gx-timer-current {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    display: block;
}

.gx-timer-target-label {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.gx-timer-target {
    font-size: 16px;
    color: #666;
    display: block;
}

/* Zone Exercises List */
.gx-zone-exercises {
    text-align: left;
}

.gx-zone-exercise-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gx-zone-exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 8px;
}

.gx-zone-exercise-item:last-child {
    margin-bottom: 0;
}

.gx-ex-name {
    font-weight: 500;
    color: #333;
}

.gx-ex-detail {
    background: #667eea;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

/* Zone Controls */
.gx-zone-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gx-btn-pause, .gx-btn-next {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.gx-btn-pause {
    background: #f0f0f0;
    color: #333;
}

.gx-btn-pause:hover {
    background: #e0e0e0;
}

.gx-btn-pause.paused {
    background: #27ae60;
    color: #fff;
}

.gx-btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.gx-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Total Time Footer */
.gx-total-time-footer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.gx-total-time-item .gx-total-label {
    font-size: 12px;
    color: #666;
    display: block;
}

.gx-total-time-item .gx-total-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Finish Modal Diff Styles */
.gx-time-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.gx-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.gx-summary-row:first-child {
    border-bottom: 1px solid #e0e0e0;
}

.gx-summary-diff span:last-child {
    font-weight: bold;
    font-size: 18px;
}

.gx-diff-under {
    color: #27ae60 !important;
}

.gx-diff-over {
    color: #e74c3c !important;
}

.gx-diff-neutral {
    color: #666 !important;
}
