body {
    font-family: Arial, sans-serif;
    font-size: clamp(1%, 1vw, 100%);
    display: flex;
    flex-direction: column;
    flex-wrap:nowrap;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    background-color: #f5f5f5;
}

#bgVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1000;
    background-size: cover;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -900;
}

.greeting {
    display: contents;
    font-size: 2vw;
    color: #ffffff;
    position: relative;
    cursor: pointer;
    transition: color 0.5s;
    top: -90px;
}

.login-container {
    position: absolute; 
    top: 60%;
    transform: translateY(-50%);
    z-index: 1; 
    padding: 40px;
    max-width: 200px;
    width: 200px;
    border: 5px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input {
    display: block;
    padding: 6px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border 0.3s;
}

input:hover {
    border-color: #007BFF;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
    width: 60%;  /* Adjust as per your design */
}

button:hover {
    background-color: #0056b4;
}

.hidden {
    display: none;
}


th {
    background-color: #007BFF;
    color: #fff;
}

tr:nth-child(1) {
    background-color: #f5f5f5;
    width: 20%;
}

tr:hover {
    background-color: #e0e0e0;
}

th, td {
    padding: 8px 16px;  /* Adjusted padding for better spacing */
    border: 1px solid #ccc;
    text-align: center;
    overflow: hidden;  /* Ensuring content does not overflow */
    text-overflow: ellipsis;  /* Hides overflow content and adds ... */
    white-space: nowrap;  /* Prevents text from wrapping into next line */
}

/* Main Table Setup  */

#content {
    width: 90%;  /* adjust as per your requirement */
    max-width: 100%; 
    margin: 0 auto;  /* centering content */
    overflow-x: auto;  /* in case of horizontal overflow, enable scrolling */
    padding: 20px;  /* to prevent content sticking to the edges */
}

.table-container {
    display: none;
    margin-top: 40px;
    width: 80%;  /* Adjust width as per requirement */
    max-width: 80%; 
    max-height: 70vh;  /* Maximum height as 70% of viewport height */
    margin-left: 10%;  /* Centering the table container */
    overflow-y: auto;  /* Enabling vertical scroll */
    border-top: 1px solid #ccc;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 1;
}

table {
    width: 100%;  /* Ensuring table takes full width of its container */
    border-collapse: initial;
    word-break: break-word;  /* Prevents overflow of content */
}



/* Menu area button layout */

.resize-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30%;
    flex-direction: column;
    gap: 5px;
}

.resize-buttons button {
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px; 
}

.resize-buttons button:hover {
    background-color: #0056b4;
}


/*......... SEARCH STYLES....*/

.search-container {
    display: none;
    width: 120%;
    margin-top: 20px;  /* To give some space above the search bar */
}

#search-input {
    width: calc(100% - 80px);  /* Adjusted to account for padding */
    padding: 10px;  /* Consistent with button padding */
    border: none;
    border-radius: 5px;  /* Consistent with button border-radius */
    box-sizing: border-box;
}

.search-button {
    width: 60px; 
    padding: 10px;
    margin-left: 5px;  /* Some space between input and button */
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #0056b4;
}


.menu-area {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 10%;
    background-color: #d4ebf2;
    color: #544326;
    padding: 5px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding-bottom: 50px;
}

.menu-logo {
   
    margin-bottom: 20px;
}

.menu-title {
     margin-bottom: 20px;
}

.resize-title {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #544326;
    text-align: center;
}


.highlighted-row {
    background-color: orange !important;
}

.popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

th span {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .menu-area {
        width: 60px;
    }
    .menu-title {
        font-size: 10px;
    }
    .table-container {
        margin-left: 0;
    }

}



#users-btn:hover {
    background-color: #0056b4;
}


/* YouTube Button */
#introvideo-btn {
    position: static;
    left: 10px;
    top: 50%;
    transform: translateY(-5%);
    padding: 10px 20px;
    background-color: #FF0000;
    color: #FFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#introvideo-btn:hover {
    background-color: #D80000;
}



/***** YouTube Modal ********/
/***** YouTube Modal ********/

#introvideo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#introvideo-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(23 75 251 / 83%);
    padding: 15px;
    box-shadow: 0px 0px 12px 22px rgb(23 75 251 / 83%);
}


#introvideo-modal .introvideo-close-modal {
    position: absolute;
    right: -10px;
    top: -20px;
    color: aliceblue;
    cursor: pointer;
    font-size: 35px;
}

#introvideo-modal iframe#introvideo-iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
}



/***** END YouTube Modal ********/



/***** Options Modal ********/

/* Initial hide modal */
#optionsModal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 70%;
    max-width: 1500px;
    max-height: 660px;
    min-width: 300px;
    min-height: 400px;
    color: black;
    background: aliceblue;
    text-shadow:  2px 2px 4px rgb(0 0 0 / 20%);
    padding: 2px;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,1.1);
    overflow: auto;
}


/* When modal is active, show it */
#optionsModal.active,
#optionsModal.show {
    display: block;
}

/* General styling for the modal content area */
#optionsModal .modal-content {
    position: relative;
    width: 100%;
    height: 100%;

}

/***** Style the tab in options ******/
.tab {
    display: flex;
    background-color: #8599db;
    justify-content: space-evenly;
    border-bottom: 1px solid #ccc;
}


/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    transition: background-color 0.3s;
    font-size: 16px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Active tab button style */
.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent iframe {
    width: 100%;
    height: 80vh !important;
    border: 0;
    box-shadow: 5px 5px 56px 0px rgba(0,0,0,0.25);
}

/* Style the close button */
.close {
    color: #aaa;
    position: absolute;
    right: 3px;
    top: -3px;
    font-size: 35px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/***** END Style the tab in options ******/





/***** User Configuration Table *****/
/* Styles for the Users table */
.Users-table {
    margin-top: 20px;
    background-color: floralwhite;
    overflow-x: auto; /* Enable horizontal scrolling for smaller screens */
    /* Set a fixed height for the container to enable vertical scrolling */
    width: 100%;
    height: 100%;
    max-height: 600px; /* Adjust the height as needed */
    /* Add overflow-y: scroll to always show vertical scrollbar */
    overflow-y: scroll;
    position: relative; /* Ensure proper positioning of the sticky header */
}

.userscontent {
    background-color: floralwhite;
}

#usersTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}   

/* Style the table cells */
#usersTable th, 
#usersTable td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
    white-space: nowrap;
    cursor: pointer; /* Show cursor as pointer when hovering over cells */
    position: relative; /* Enable relative positioning for resizing */
    z-index: 2;
}

/* Style the resizing handle */
#usersTable th::after,
#usersTable td::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #ccc;
    cursor: nwse-resize; /* Show diagonal resize cursor */
    z-index: 2;
}


/* Hide resizing handle when not resizing */
#usersTable th.resizing::after,
#usersTable td.resizing::after {
    display: none;
}

#usersTable th {
    background-color: floralwhite;
    Color: black;
    /* Make the table header sticky */
    position: sticky;
    top: 0; /* Stick the header to the top of the container */
}




#usersTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
    Color: black;
}

#usersTable tbody tr:hover {
    background-color: brown;
    Color: black;
}

/* Additional Media Query for Responsiveness */
@media (max-width: 768px) {
    #usersTable th, 
    #usersTable td {
        padding: 6px;
    }
}
/***** END User Configuration Table *****/

/* Style for the tooltip container */
.tooltip-container {
  --background-light: #ff5555; /* Red */
  --background-dark: #000000; /* Black */
  --text-color-light: #ffffff;
  --text-color-dark: #ffffff;
  --bubble-size: 12px;
  --glow-color: rgba(255, 255, 255, 0.5); /* Brighter glow color */

  position: relative;
  background: var(--background-light);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 17px;
  padding: 0.7em 1.8em;
  color: var(--text-color-light);
  border-radius: 8px; /* Rounded edges */
}

/* Style for the bubble tooltip */
.tooltip {
  position: absolute;
  top: -100%; /* Initially hidden above the container */
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6em 1em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s;
  border-radius: var(--bubble-size);
  background: var(--background-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Triangle arrow for the bubble tooltip */
.tooltip::before {
  content: "";
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%);
  border-style: solid;
  border-width: 8px 8px 0;
  border-color: var(--background-light) transparent transparent;
}

/* Tooltip appearance on hover */
.tooltip-container:hover {
  background: var(--background-dark);
  color: var(--text-color-dark);
  box-shadow: 0 0 20px var(--glow-color); /* Brighter glow effect */
}

.tooltip-container:hover .tooltip {
  top: -120%; /* Adjusted position for the bubble tooltip */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}




