 /* Fixed header styles */
.fixed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background-color: #EFF5BB;
  z-index: 9999;
}

.logo img {
  height: 50px;
  margin-left: 10px;
}

.heading {
  margin: auto;
  margin-left: 10px;
  color: slateblue;
  margin-top: 1px;
  margin-bottom: 0;
  font-family: "Bookman Old Style", serif;
}

/* New styles for left pane */
.left-pane {
  position: fixed;
  top: 60px;
  left: 0;
  width: 18%;
  height: 100vh;
  background-color: #f4ea83;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  display: none;
  padding: 20px 20px 20px 1px;
  box-sizing: border-box;
  overflow-y: auto;
}

.left-pane-active {
  display: block;
}

.left-pane ul {
  display: flex;
  flex-direction: column;
  text-align: right;
  list-style: none;
  
}

.left-pane li {
  padding: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid black;
}

.left-pane li:hover {
  background-color: #f7f4d0;
}

.left-pane li a {
  text-decoration: none;
}

.left-pane .sub-links {
  display: none;
  border-top-right-radius: 10px; /* Rounded top-right corner */
  border-bottom-right-radius: 10px; /* Rounded bottom-right corner */
}

.left-pane li:hover .sub-links {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
  left: 100%;
  padding: 10px;
  background-color: #f4ea83;
}

.left-pane .sub-links a {
  display: block;
  padding-right: 16px;
  position: relative;
}

.left-pane li.has-sub-links > a::after {
  content: '\2192';
  position: relative;
  top: 50%;
  right: 0;
  margin-left: 5px;
  transform: translateY(-50%);
}

.left-pane .sub-links a::after {
  content: '';
}


.dots {
  position: fixed;
  top: 63px;
  left: 100px; /* adjust this value as needed */
  width: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: red;
  margin-right: 4px;
}

.dots:hover ~ .left-pane {
  display: block;
}
/* Media query for small screens */
@media (max-width: 768px) {
  .fixed-header {
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    position: fixed;
    
  }
  
  /* New styles for left pane */
.left-pane {
   width: 50%;
   top: 87px;
  }
  
  .dots {
  position: fixed;
  top: 45px;
  left: 170px;
}
}
 
  /* Styling for modal box */
        #successModal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.4);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 400px;
            text-align: center;
        }
    
        @keyframes flash {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        .total-members {
            animation: flash 1s infinite;
            color: #FF0000;
        }
        #changeCredentialsBtn {
    position: absolute;
    top: 50px;
    right: 10px;
     padding: 10px 20px;
        background-color: Dodgerblue;
        color: white;
        cursor: pointer;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

 body {
        position: relative;
        top: 40px;
        background-color: #f0f0f0;
        font-family: inherit;
    }
    .container {
        border: 2px solid #FFFFFF;
        width: 80%;
        margin: auto;
        text-align: center;
    }

    h1 {
        margin-top: 50px;
    }

    .user-profile {
        margin-top: 50px;
        border: 1px solid #ccc;
        padding: 20px;
        width: 300px;
    }

    .user-profile img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin-bottom: 10px;
    }

form {
  margin-top: 20px;
  text-align: center;
  width: 500px;
  margin-left: auto;
  margin-right: auto;
}

form label {
  display: block;
  margin-bottom: 10px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select[type="state"],
form input[type="file"] {
  width: 100%;
  max-width: 300px;
  padding: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

form input[type="submit"] {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background-color: #45a049;
}

.form-wrapper {
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-top: 50px;
  text-align: center;
  font-family: "Century", serif;
  font-size: 15px;
  width: 500px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto; 
  max-width: 100%;
}

.form-wrapper::after {
  content: '+';
  margin-left: 25px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.form-wrapper.active::after {
  content: '-';
  margin-left: 25px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.form-fields {
  display: none;
  background-color: lightblue;
  border: 2px solid orange;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 5px;
  width: 500px;
  margin: 0 auto;
  text-align:center;
}

@media screen and (max-width: 768px) {
  .form-wrapper {
    overflow-x: auto; 
    width: 90%;
  }
  
  .form-fields {
    overflow-x: auto; 
    width: 90%;
  }
}
  


    /* Styling for logout button */
    .logout-button {
        position: absolute;
        top: 50px;
        margin-left: 10px;
        padding: 10px 20px;
        background-color: red;
        color: white;
        cursor: pointer;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .logout-button:hover {
        background-color: orange;
    }

    select,
    input[type="date"] {
        padding: 5px;
        font-size: 14px;
    }

    table {
        border-collapse: collapse;
        width: 100%;
        overflow-x: scroll;
        font-family: "Century Gothic", serif;
        font-size: 14px;
        margin-left: 5px;
        text-align: center;
    }
    th {
    background-color: yellow;
    color: blue;
    font-weight: bold;
    text-align: center;
}


    th, td {
        padding: 8px;
        border: 2px solid #ddd;
    }

    tr:nth-child(even) {
        background-color: #E8FAC4;
    }
    
    tr:nth-child(odd) {
        background-color: #FFFFFF;
    }
    th.sortable {
    cursor: pointer;
    position: relative;
}

th.sortable::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
}

th.asc::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000;
    margin-left: 5px;
    vertical-align: middle;
}

th.desc::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000;
    margin-left: 5px;
    vertical-align: middle;
}
.image-holder {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.image-holder img {
  max-width: 100%;
  max-height: 100%;
}

.image-holder .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}


    /* Add horizontal scrollbar for small screens */
    @media screen and (max-width: 768px) {
        table {
            overflow-x: scroll;
        }
    }


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: ivory;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

h2 {
    margin-top: 0;
}

@media screen and (max-width: 768px) {
    .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: 90%; /* Added to ensure the content fits within the screen */
    }
    .modal-content form {
        text-align: left; /* Reset text alignment for the form elements */
    }
}
.toggle-header {
    margin-bottom: 10px;
}

.toggle-header button {
    padding: 10px;
    background-color: #f2f2f2;
    border: 2px;
    cursor: pointer;
}

.toggle-header button.active {
    background-color: #ddd;
}

.toggle-section {
    display: block;
}

form {
    margin-bottom: 10px;
}

input, button {
    margin-top: 5px;
}

button {
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

    .welcome-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 60px;
        width: 100%;
    }

   .welcome-message {
        position: fixed;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        background-color: lightblue;
        padding: 5px;
        border: 1px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
        font-size: 18px;
        width: 100%;
        z-index: 999;
   }
   
    .dropdown-container {
        position: relative;
        display: inline-block;
        white-space: nowrap;
    }

    .arrow {
        cursor: pointer;
        margin-left: 10px;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 10px;
        z-index: 1;
        border: 1px solid #ccc;
        text-align: left;
        z-index: 999;
    }

    .dropdown-container.active .dropdown-content {
        display: block;
    }
    
    @media screen and (max-width: 600px) {
    .dropdown-content {
        left: auto;
        right: 0;
    }
}
   
   /* Media query for small screens */
@media (max-width: 768px) {
    
     body {
        top: 90px;
    }
    
    .welcome-message {
        top: 80px;
   }
   .form-wrapper {
  margin-top: 85px;
  
}
}