/* General Styles */
body {
    font-family: 'Orbitron', sans-serif; /* Futuristic font */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); /* Dark gradient background */
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #000428, #004e92);
    color: #fff;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    border-bottom: 2px solid rgba(0, 255, 255, 0.5);
}

header h1 {
    font-size: 3rem;
    color: #00ffff; /* Neon cyan */
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

/* Main Container */
main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Upload Section */
#upload-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    margin-bottom: 20px;
    width: 80%;
    max-width: 600px;
}

#upload-section h2 {
    color: #ff00ff; /* Neon pink */
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
}

#upload-form input,
#upload-form button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

#upload-form input {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#upload-form button {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#upload-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
}

/* Video List */
#video-list {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    width: 80%;
    max-width: 800px;
}

#video-list h2 {
    color: #00ff00; /* Neon green */
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}

#videos li {
    list-style: none;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#videos li h3 {
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
}

#videos li video {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Search Bar */
#search-bar {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Dropdowns */
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    color: #fff; /* White text color */
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    appearance: none; /* Remove default dropdown arrow styling */
    cursor: pointer;
}

/* Style for dropdown options */
select option {
    background: #333; /* Dark background for options */
    color: #fff; /* White text color */
}

/* Buttons */
button {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    padding: 10px 15px;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
}

/* Video Background */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire screen */
    z-index: -1; /* Places the video behind all other content */
    filter: brightness(0.6) contrast(1.2) blur(2px); /* Adds a slight blur to the video */
}

/* Overlay for readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Reduce overlay opacity for better video visibility */
    z-index: 0; /* Places the overlay above the video but below content */
}

/* User Authentication Section */
#user-auth {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

#login-form {
    display: flex;
    gap: 10px;
}

#login-form input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#login-form button {
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logout-button {
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff0000, #ff6600);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    video {
        width: 100%;
    }
}