/* Gauge styles for Kenobi walk tracker */
.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

#walk-gauge {
    display: block;
    margin: 0 auto;
}

#gauge-label {
    margin-top: 0.2em;
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}
body {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: #000;
    min-height: 100vh;
    color: #333;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    pointer-events: none;
    z-index: -1;
}

.background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-time {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.walk-section {
    text-align: center;
    margin-bottom: 30px;
}

.walk-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.walk-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.walk-button:active {
    transform: translateY(0);
}

.stats-lounge-link {
    text-align: center;
    margin-bottom: 18px;
}

.stats-lounge-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.15);
    color: #4c51bf;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(102, 126, 234, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.stats-lounge-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.25);
    background: rgba(102, 126, 234, 0.25);
}

.walk-form {
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    padding: 24px;
    margin-bottom: 20px;
}

.walk-form h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #333;
}

.walk-form-help {
    margin: 0 0 16px;
    color: #6c757d;
    font-size: 0.95em;
}

.walker-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.walker-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed #ced4da;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    padding: 8px 16px;
    font-size: 0.95em;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.walker-chip:hover {
    transform: translateY(-1px);
    border-color: #667eea;
}

.walker-chip.selected {
    border-style: solid;
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.walker-chip-icon {
    font-weight: 600;
}

.walk-type-group {
    margin-bottom: 18px;
}

.walk-type-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.edit-entry .walk-type-label {
    text-align: left;
    margin-top: 6px;
}

.walk-type-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.walk-type-option {
    border: 2px solid #ced4da;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    cursor: pointer;
    color: #495057;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.walk-type-option:hover {
    border-color: #667eea;
}

.walk-type-option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.walk-timestamp-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.walk-form input[type="datetime-local"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 16px;
    background-color: rgba(255, 255, 255, 0.95);
}

.walk-form .walk-button {
    width: 100%;
    margin-top: 8px;
}

.manual-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.manual-button:hover {
    background: #218838;
}

.secondary-button {
    background: #6c757d;
}

.secondary-button:hover {
    background: #5a6268;
}

.edit-entry {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.edit-entry h3 {
    margin-top: 0;
    color: #333;
}

.edit-entry input,
.edit-entry select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin: 0 0 12px;
    font-size: 1em;
    background-color: #fff;
}

.edit-entry select[multiple] {
    min-height: 160px;
}

.walker-select-label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 600;
    color: #495057;
}

.edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.walk-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.walk-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    gap: 12px;
}

.walk-history-text {
    flex: 1;
    color: #333;
}

.walk-history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.walk-history-actions button {
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
}

.edit-walk-btn {
    background: #17a2b8;
}

.edit-walk-btn:hover {
    background: #138496;
}

.delete-walk-btn {
    background: #dc3545;
}

.delete-walk-btn:hover {
    background: #c82333;
}

.chart-container {
    margin-bottom: 20px;
}

.chart-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 400px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    gap: 8px;
}

.chart-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    flex: 1;
    position: relative;
    transition: background 0.3s;
}

.chart-bar:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: #6c757d;
    white-space: nowrap;
}

.chart-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: #333;
    font-weight: bold;
}

.status {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .chart {
        padding: 20px;
        height: 300px;
    }
    .walk-form input[type="datetime-local"] {
        width: 100%;
    }

    .walker-chip {
        flex: 1 1 45%;
    }
}
