/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center content horizontally */
    height: 100vh; /* Full viewport height */
    align-items: flex-start; /* Align content to the top */
}

/* Navigation Styles */
.navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100vh;
    background-color: #343a40; /* Bootstrap's dark shade */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; /* Adjusted to match the navigation width for a full square */
    height: 40px; /* Square dimensions */
    text-align: center;
    margin: 10px 0;
    border-radius: 4px;
    background-color: #6c757d; /* Bootstrap's secondary shade */
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: #007bff; /* Bootstrap's blue */
    transform: scale(1.1);
}

/* Main Container Styles */
.container {
    width: calc(100% - 60px); /* Adjust width considering nav */
    max-width: 1024px; /* Maximum width */
    padding: 20px;
    box-sizing: border-box; /* Include padding in width calculation */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */

}

h1 {
    width: 100%;
    text-align: left; /* Align title text to the left */
    border-bottom: 1px solid #a4a1a1; /* Dark grey underline for the title */
    padding-bottom: 10px; /* Space between text and underline */
}

iframe {
    width: 100%;
    height: 515px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px; /* Increased space between the player and buttons */
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 10px; /* Space between items */
    margin-bottom: 20px; /* Space below the button group */
}

/* Buttons */
.button-group button {
    flex-grow: 0; /* Do not allow buttons to grow */
    flex-shrink: 0; /* Do not allow buttons to shrink */
    height: 50px; /* Fixed height */
    padding: 0 20px; /* Horizontal padding */
    white-space: nowrap; /* Prevent text from wrapping */
    border-radius: 4px;
    font-size: 16px; /* Adjust font size as needed */
    line-height: 50px; /* Align text vertically */
}

/* Alert */
#recordingAlert {
    flex-grow: 1; /* Allow alert to take up the remaining space */
    height: 50px; /* Fixed height to match buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* No margin to prevent layout shift */
    padding: 0 20px; /* Horizontal padding to match buttons */
    border-radius: 4px;
    font-size: 16px; /* Adjust font size as needed */
    line-height: 50px; /* Align text vertically */
    box-sizing: border-box; /* Include padding in width */
}



/* Table Styles */
.table {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #007bff;
    color: #1c1c1c; /* Very dark grey for heading text */
}



/* Video Modal */
.modal-dialog {
    max-width: 500px; /* Set the maximum width of the modal */
    margin: auto; /* Center the modal horizontally */
}

.modal-content {
    width: 100%; /* Use 100% of the .modal-dialog width */
}

/* Ensure the video inside the modal is responsive */
#videoPlayer {
    max-width: 100%;
    height: auto;
}


/* Media queries for devices with maximum width of 1024px (Tablet and some small desktops) */
@media (max-width: 1024px) {
    .container {
        margin-left: 65px; /* Ensures the container moves slightly to accommodate the navigation */
    }
}

/* Media queries for devices with maximum width of 768px (Tablet in portrait mode) */
@media (max-width: 768px) {
    body {
        padding-left: 0; /* Removes the left padding for full-width navigation */
    }

    .navigation {
        width: 100%; /* Navigation bar spans the full width */
        height: 60px; /* Reduced height for a more compact nav bar */
        flex-direction: row; /* Align nav links horizontally */
        justify-content: space-evenly; /* Even spacing for all items */
    }

    .container {
        width: 100%; /* Full width for the container */
        padding-top: 60px; /* Adds padding to top to avoid overlap with navigation */
        margin-left: 0; /* No margin on the left */
    }

    .nav-link {
        margin: 10px; /* Uniform margin for visual spacing */
    }

    iframe {
        width: 100%; /* Ensure iframe takes full width of the container */
        height: 400px; /* Reduced height for better view in smaller devices */
    }
}

/* Media queries for devices with maximum width of 480px (Mobile devices) */
@media (max-width: 480px) {
    .button-group {
        flex-direction: column; /* Stack buttons vertically */
        width: 100%; /* Ensure the button group takes full width */
    }

    .button-group button {
        display: block; /* Stacks the buttons vertically */
        width: 100%; /* Full width for each button */
        margin-top: 5px; /* Adds top margin for spacing between stacked buttons */
        margin-left: 0; /* Ensure no left margin */
        margin-right: 0; /* Ensure no right margin */
    }

    .modal-dialog {
        width: 95%; /* Adjust modal dialog width to fit mobile screens */
    }

    iframe {
        width: 100%; /* Ensure iframe takes full width of the container */
        height: 200px; /* Adjust height for very small screens */
    }

    #recordingAlert {
        width: 100%; /* Full width to match buttons */
        text-align: center; /* Center text within alert */
    }
}

