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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

p {
    /* margin-bottom: 20px; */
    font-size: 16px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button, .button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

button:hover, .button:hover {
    background-color: #2980b9;
}

.button.secondary {
    background-color: #95a5a6;
}

.button.secondary:hover {
    background-color: #7f8c8d;
}

.status-container {
    margin-bottom: 30px;
}

.video-status {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
}

.video-status .url {
    font-weight: bold;
    margin-bottom: 10px;
    word-break: break-all;
}

.status-info {
    margin-bottom: 5px;
}

.status-label {
    font-weight: bold;
}

.video-status.completed {
    border-left: 5px solid #2ecc71;
}

.video-status.downloading, .video-status.converting, .video-status.pending {
    border-left: 5px solid #f39c12;
}

.video-status.failed {
    border-left: 5px solid #e74c3c;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 4px;
}

.navigation {
    margin-top: 20px;
    text-align: center;
}

.loading {
    text-align: center;
    margin: 20px 0;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-top: 10px;
}

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

.downloads-list {
    margin-bottom: 30px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.download-item .title {
    flex: 1;
    padding-right: 15px;
}

.download-button {
    background-color: #2ecc71;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.download-button:hover {
    background-color: #27ae60;
}

.no-downloads {
    text-align: center;
    padding: 30px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}
