body {
    background-color: black;
    color: #DDDDDD; /* Light gray text */
    font-family: "Times New Roman", Times, serif; /* Classic serif font */
    margin: 20px;
}

a {
    color: #7777FF; /* Bright blue links */
    text-decoration: underline;
}

a:visited {
    color: #CC77CC; /* Purple visited links */
}

h1, h2, h3 {
    color: #EEEEEE; /* Slightly brighter headings */
}

/* Basic form styling */
input[type="text"],
input[type="password"],
input[type="submit"] {
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #555555;
    background-color: #222222;
    color: #DDDDDD;
}

input[type="submit"] {
    cursor: pointer;
    background-color: #444444;
}

input[type="submit"]:hover {
    background-color: #555555;
}

/* Basic table styling (might use later for video list) */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
}

th, td {
    border: 1px solid #555555;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #333333;
}

/* Simple container */
.container {
    max-width: 800px;
    margin: 0 auto; /* Center content */
    padding: 15px;
    border: 1px solid #444444; /* Subtle border */
}

/* Basic video player styling */
video {
    max-width: 100%; /* Ensure video player is responsive */
    display: block; /* Prevent extra space below video */
    margin-top: 10px;
}

/* Thumbnail Hover Styles */
.video-list {
    list-style: none; /* Remove default list bullets */
    padding-left: 0;
}

.video-item {
    position: relative; /* Needed for absolute positioning of the thumbnail */
    display: inline-block; /* Or block, depending on desired layout */
    margin-bottom: 5px; /* Add some space between items */
}

.video-thumbnail {
    display: none; /* Hide by default */
    position: absolute;
    bottom: 100%; /* Position above the link */
    left: 0;
    margin-bottom: 5px; /* Space between link and thumbnail */
    width: 320px; /* Match the generated width */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #555;
    background-color: #111;
    padding: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 10; /* Ensure it's above other elements */
}

.video-item:hover .video-thumbnail {
    display: block; /* Show on hover */
}

/* Watch Status Indicators */
.status-watched {
    color: #77CC77; /* Light green */
    font-size: 0.9em;
    margin-left: 5px;
}

.status-in-progress {
    color: #CCCC77; /* Light yellow/orange */
    font-size: 0.9em;
    margin-left: 5px;
}

/* Admin Dashboard Styles */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background-color: #222222;
    border: 1px solid #444444;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #444444;
    padding-bottom: 10px;
}

.admin-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #444444;
    color: #DDDDDD;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 0;
}

.admin-button:hover {
    background-color: #555555;
}

.admin-button.disabled, 
button.admin-button:disabled {
    background-color: #333333;
    color: #777777;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Scan status card styling */
#scan-status-card.scanning {
    border-color: #CCCC77; /* Yellow border when scanning */
    background-color: rgba(204, 204, 119, 0.1); /* Subtle yellow background */
}

#scan-status-card.disconnected {
    border-color: #CC7777; /* Red border when disconnected */
    background-color: rgba(204, 119, 119, 0.1); /* Subtle red background */
}

.has-error {
    color: #CC7777; /* Red text for errors */
}

/* Admin table styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th, 
.admin-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #444444;
}

.admin-table th {
    background-color: #333333;
}

.admin-table tr:nth-child(even) {
    background-color: #2A2A2A;
}

.admin-table tr:hover {
    background-color: #383838;
}

/* --- Video Queue Styles --- */
.add-to-queue-btn,
.remove-from-queue-btn {
    background-color: #444444;
    color: #DDDDDD;
    border: 1px solid #555555;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    vertical-align: middle; /* Align with text/icons */
}

.add-to-queue-btn:hover,
.remove-from-queue-btn:hover {
    background-color: #555555;
}

.add-to-queue-btn:disabled {
    background-color: #333333;
    color: #777777;
    cursor: not-allowed;
}

#video-queue-container {
    background-color: #1a1a1a; /* Slightly different background */
    border: 1px solid #444444;
    border-radius: 4px;
    margin-top: 20px;
    max-height: 400px; /* Adjust max height as needed */
    overflow-y: auto;
    padding: 15px;
}

#video-queue-container h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #444444;
    color: #EEEEEE;
}

#video-queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#video-queue-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #333333;
}

#video-queue-list li:last-child {
    border-bottom: none; /* Remove border from last item */
}

#video-queue-list img {
    width: 100px; /* Slightly larger thumbnail */
    height: auto;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #444;
}

#video-queue-list span {
    flex-grow: 1; /* Allow title to take remaining space */
    color: #DDDDDD;
}

#empty-queue-message {
    color: #888888;
    font-style: italic;
    padding: 10px 0;
}
