/* tlg-style.css */
.tlg-container {
    max-width: 600px;
    margin: 2rem auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.tlg-upload-area {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tlg-upload-area:hover,
.tlg-upload-area.tlg-dragover {
    border-color: #6c5ce7;
    background: #f0eeff;
}

.tlg-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tlg-upload-area h3 {
    margin: 0 0 0.5rem;
    color: #333;
}

.tlg-upload-area p {
    margin: 0.25rem 0;
    color: #666;
}

.tlg-formats {
    font-size: 0.85rem;
    color: #999 !important;
    margin-top: 1rem !important;
}

.tlg-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tlg-btn-primary {
    background: #6c5ce7;
    color: #fff;
}

.tlg-btn-primary:hover {
    background: #5b4cdb;
    transform: translateY(-1px);
}

.tlg-btn-secondary {
    background: #e9e9e9;
    color: #333;
}

.tlg-btn-secondary:hover {
    background: #ddd;
}

.tlg-preview {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
}

.tlg-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.tlg-file-name {
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlg-btn-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tlg-btn-remove:hover {
    color: #e74c3c;
}

.tlg-generate-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
}

.tlg-processing {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
}

.tlg-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: tlg-spin 1s linear infinite;
}

@keyframes tlg-spin {
    to { transform: rotate(360deg); }
}

.tlg-processing p {
    margin: 0.5rem 0;
    color: #333;
}

.tlg-processing-note {
    font-size: 0.85rem;
    color: #999 !important;
}

.tlg-results {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
}

.tlg-results h3 {
    margin: 0 0 1rem;
    color: #333;
}

.tlg-lyrics-display {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
    font-size: 1rem;
    color: #333;
}

.tlg-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tlg-actions .tlg-btn {
    flex: 1;
    min-width: 120px;
}

.tlg-timestamps {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.tlg-timestamps h4 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 0.95rem;
}

.tlg-timestamps-display {
    background: #1a1a2e;
    color: #a8e6cf;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
}

.tlg-error {
    text-align: center;
    padding: 2rem;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 16px;
}

.tlg-error-message {
    color: #c0392b;
    margin: 0 0 1.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .tlg-container {
        margin: 1rem;
    }
    
    .tlg-upload-area {
        padding: 2rem 1rem;
    }
    
    .tlg-actions {
        flex-direction: column;
    }
    
    .tlg-actions .tlg-btn {
        width: 100%;
    }
}
