:root {
    --primary: #FF0050;
    /* TikTok Pink */
    --secondary: #00f2ea;
    /* TikTok Cyan */
    --bg-dark: #010101;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-dim: #a0a0a0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

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

header h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    margin-top: -30px;
    margin-bottom: 20px;
}

.settings-form,
.connection-status {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.download-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.download-section form {
    display: flex;
    gap: 15px;
}

input[type="text"],
input[type="password"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: white;
    color: black;
    border-color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.video-preview {
    position: relative;
}

.video-preview video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: black;
}

.processed-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: black;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-info {
    padding: 20px;
}

.metadata-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.metadata-form input,
.metadata-form textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    width: 100%;
}

.metadata-form textarea {
    height: 60px;
    resize: none;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.status-badge.pending {
    background: rgba(255, 255, 0, 0.1);
    color: #ffcc00;
}

.status-badge.processed {
    background: rgba(0, 242, 234, 0.1);
    color: var(--secondary);
}

.status-badge.uploaded {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.btn-group {
    display: flex;
    gap: 5px;
}

.btn-primary-sm {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border: none;
    padding: 6px 15px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.75rem;
}

.btn-primary-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
}

.status.connected {
    color: #00ff00;
}

.status.disconnected {
    color: var(--primary);
}