/* Styles to make sidebar overlay the content on mobile */
#sidebar-wrapper {
    width: 250px; /* Set the sidebar width */
    position: fixed; /* Fixed Sidebar (stay in place on scroll) */
    height: 100%;
    left: -250px; /* Initial position - hide sidebar */
    top: 0;
    transition: left 0.3s; /* Smooth transition for sidebar movement */
    z-index: 1000;
    background-color: white; /* Ensure sidebar has a background */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* Add a subtle shadow for better visibility */
}

#page-content-wrapper {
    width: 100%;
    transition: left 0.3s; /* Smooth transition for left changes */
    overflow-x: hidden; /* Prevents horizontal scroll on transition */
    position: relative; /* Add relative positioning to ensure proper layering */
}

#menu-toggle {
    cursor: pointer;
    position: fixed; /* Fixed position for the toggle button */
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right edge */
    z-index: 1050; /* Higher z-index to ensure it's above other content */
    display: none; /* Initially hidden */
}

@media (max-width: 992px) { /* Adjust this value based on your breakpoint preference */
    #menu-toggle {
        display: block; /* Show toggle button on small screens */
    }

    #wrapper.toggled #sidebar-wrapper {
        left: 0; /* Slide sidebar into view */
    }

    #wrapper.toggled #page-content-wrapper {
        left: 0; /* Keep the content in place */
        overflow-x: hidden; /* Keeps the content area stable when the sidebar toggles */
    }
}

@media (min-width: 992px) {
    #sidebar-wrapper {
        left: 0; /* Always show sidebar on larger screens */
    }

    #page-content-wrapper {
        margin-left: 250px; /* Push the page content to the right when sidebar is visible */
    }
}

/* Custom styles for the cards */
.card {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Increased shadow for a more pronounced effect */
    border: 1px solid #ddd; /* Light gray border for better definition */
    border-radius: 10px; /* Smooth, rounded corners */
    background-color: #f8f9fa; /* Slightly darker background color */
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transitions */
}

.card:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Darker shadow on hover */
}

/* Center text in card titles */
.card-title {
    font-weight: bold; /* Bold text for the title */
    font-size: 1.25rem; /* Slightly larger font size */
    color: #343a40; /* Darker text color */
}

/* Adjust card text color and spacing */
.card-text {
    color: #6c757d; /* Gray color for the card text */
    margin-top: 0.5rem; /* Spacing between the title and text */
}

/* Center cards in the row */
.row.justify-content-center {
    margin-top: 2rem; /* Add some space at the top */
    margin-bottom: 2rem; /* Add some space at the bottom */
}

@media (max-width: 768px) { /* Adjust this breakpoint as needed */
    .wide-mobile-tile {
        --bs-gutter-x: 10px;
    }
}

.content-tile {
    padding-left: 5px;
    padding-right: 5px;
}


/* Ensure the links have no text decoration and inherit the default color */
a.text-decoration-none {
    text-decoration: none;
    color: inherit;
}

.clickable-row {
    cursor: pointer;
}

@media (max-width: 768px) {
    .btn-group-vertical {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center buttons horizontally */
        width: 100%;
    }
    .btn-group-vertical .btn {
        margin-bottom: 20px;
        width: calc(100% - 20px); /* Ensure there's some space around the buttons, 10px on each side */
    }
    .btn-group-vertical .btn:last-child {
        margin-bottom: 0;
    }
}

.stream-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    background-color: black; /* Fallback for loading times */
    overflow: hidden;
}

.stream-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Contain ensures the entire image fits within the container */
    background-color: black; /* Optional: Set a background color for the container */
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Higher than the sidebar and content */
}

.loading-content {
    display: flex;
    flex-direction: column; /* Stack spinner and text vertically */
    justify-content: center;
    align-items: center; /* Ensure the spinner and text are centered */
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #007bff; /* Change color as needed */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


footer {
    text-align: center;
    padding: 1rem 0;
    background: #f8f9fa;
}

