* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #4a5568;
    font-size: 28px;
    font-weight: 700;
}

.logout-btn {
    background: #e53e3e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c53030;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4a5568;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Special styling for YouTube URL field (primary field) */
#youtube_url {
    border: 2px solid #48bb78;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-weight: 600;
    position: relative;
}

#youtube_url:focus {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    background: white;
}

#youtube_url::placeholder {
    color: #68d391;
    font-weight: normal;
}

/* Highlight the YouTube URL form group */
#youtube_url + small {
    background: #f0fff4;
    padding: 8px;
    border-radius: 6px;
    border-left: 4px solid #48bb78;
    margin-top: 5px;
    display: block;
}

.btn {
    padding: 6px 6px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-secondary {
    background: #a0aec0;
    color: white;
}

.btn-secondary:hover {
    background: #718096;
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.podcast-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.podcast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.podcast-card h3 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 18px;
}

.podcast-card p {
    color: #718096;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.podcast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #a0aec0;
}

.podcast-actions {
    display: flex;
    gap: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.table tbody tr:hover {
    background: #f7fafc;
}

/* Legacy audio player styles - kept for backward compatibility */
.audio-player-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.audio-player-container audio {
    height: 32px;
    width: 200px;
    border-radius: 4px;
}

/* Clean actions layout - completely redesigned */
.actions-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    min-width: 200px;
    max-width: 300px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
}

.action-buttons .btn {
    width: 100%;
    height: 36px;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.audio-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    width: 100%;
}

.audio-section .btn {
    margin: 0;
    height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 60px;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-section .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Responsive actions */
@media (max-width: 768px) {
    .actions-container {
        gap: 6px;
    }
    
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .audio-section {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: stretch;
    }
    
    .audio-section .btn {
        justify-self: center;
        min-width: 80px;
    }
    
    .audio-section audio {
        min-width: 100%;
    }
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.progress-container {
    background: #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    background: #667eea;
    height: 8px;
    border-radius: 4px;
    transition: width 0.3s;
    margin: 10px 0;
}

.episode-processing {
    background: #fef5e7;
    border: 1px solid #f6e05e;
    color: #744210;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.rss-link {
    background: #e6fffa;
    border: 1px solid #4fd1c7;
    color: #234e52;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.rss-link a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    .podcast-grid {
        grid-template-columns: 1fr;
    }
    
    .podcast-actions {
        flex-direction: column;
    }
    
    .table {
        font-size: 14px;
    }
}

/* Audio Drop Zone Styles */
.drop-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.drop-zone.drag-over {
    border-color: #3182ce;
    background: #ebf8ff;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.drop-zone-text {
    color: #4a5568;
    line-height: 1.5;
}

.drop-zone-text strong {
    color: #2d3748;
}

.drop-zone-text small {
    color: #718096;
}

.upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3182ce, #4299e1);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #4a5568;
    font-weight: 600;
} 

/* Play/Pause button specific styles */
.play-pause-btn {
    min-width: 80px !important;
}

/* Button states for play/pause */
.btn-warning {
    background-color: #f6ad55;
    color: white;
}

.btn-warning:hover {
    background-color: #ed8936;
} 