/* FastHTML Audio Annotation Tool Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background: #fff7ef;
    min-height: 100vh;
}

.page-shell {
    padding: clamp(16px, 4vw, 48px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(247,147,30,0.15);
    border: none !important;
}

/* Waveform styling */
#waveform {
    border: 2px solid #ffd7b2;
    cursor: pointer;
}

#timeline {
    border: 1px solid #ffd7b2;
    border-radius: 4px;
    padding: 5px 0;
}

/* Control buttons */
.control-btn {
    padding: 10px 20px;
    border: 2px solid #f7931e;
    background: white;
    color: #c86400;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #f7931e;
    color: white;
    transform: scale(1.02);
}

.clip-btn {
    padding: 6px 12px;
    border: 1px solid #f7931e;
    background: white;
    color: #c86400;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.clip-btn:hover {
    background: #f7931e;
    color: white;
}

/* Navigation controls */
.nav-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: #f7931e;
    color: #4a2b04;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #d97800;
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Progress bar */
.progress {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.folder-name {
    color: #f7931e;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 10px 0 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f7931e, #c86400);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Clips list styling */
#clips-list {
    background: #fafafa;
}

#clips-list::-webkit-scrollbar {
    width: 8px;
}

#clips-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#clips-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#clips-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Form inputs */
textarea {
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #f7931e;
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.25);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

select {
    cursor: pointer;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 5px;
    }

    .nav-controls {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 20px;
}

.mt-2 {
    margin-top: 20px;
}

/* WaveSurfer region colors (override defaults) */
wavesurfer-region {
    z-index: 3;
}

/* HTMX Loading indicators */
.htmx-indicator {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.htmx-request .htmx-indicator {
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Button hover effects for better UX */
.next-btn:hover {
    background: #f7a447 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.complete-btn:hover {
    background: #c86400 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.flag-btn:hover {
    background: #bb2d3b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Disable buttons during loading */
.htmx-request button {
    opacity: 0.7;
    pointer-events: none;
}
