/* General Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #000000; /* Pure black background */
    margin: 0;
    padding: 0;
    color: #28a745; /* Green text */
    scroll-behavior: smooth;
}

#register-section, #login-section {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background: #000000; /* Pure black */
    color: #28a745; /* Green text */
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    text-align: center;
}

/* Form Fields */
input, button {
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #28a745; /* Green border */
    background: #000000; /* Black input background */
    color: #28a745; /* Green text */
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus, input:hover {
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

/* Buttons */
button {
    background: linear-gradient(to right, #28a745, #1e7e34); /* Green button */
    color: #ffffff; /* White text */
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
}

button:hover {
    background: linear-gradient(to right, #1e7e34, #155d27);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 255, 0, 0.2);
}

/* Search Bar */
#search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #000000; /* Black */
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 255, 0, 0.1);
}

#search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #28a745;
    border-radius: 8px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background: #000000;
    color: #28a745;
}

#search-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

/* Categories */
#category-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.category {
    padding: 8px 16px;
    background: linear-gradient(to right, #28a745, #1e7e34); /* Green */
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    background: linear-gradient(to right, #1e7e34, #155d27);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 255, 0, 0.2);
}

/* Video Section */
#videos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    margin: 0 auto;
}

.video-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000000; /* Black */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 255, 0, 0.2);
}

/* Video Iframe */
iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease;
    background: url('loading-spinner.gif') center no-repeat;
    background-size: contain;
}

iframe:hover {
    transform: scale(1.01);
}

/* Video Info */
.video-title, .video-time {
    text-align: center;
    margin: 5px 0;
    font-weight: bold;
    color: #28a745;
}

.video-description {
    text-align: center;
    font-size: 14px;
    color: #28a745;
    display: none;
    margin-top: 10px;
    word-wrap: break-word;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    iframe {
        height: 300px;
    }

    #register-section, #login-section {
        padding: 15px;
    }
}

@media (max-width: 500px) {
    input, button {
        font-size: 14px;
        padding: 10px;
    }
}
