html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    height: 100vh;
    background-color: #191919;
    overflow-x: hidden;
    max-width: 100vw;
}

body::-webkit-scrollbar {
    width: 10px;
    /* Adjust scrollbar width */
}

body::-webkit-scrollbar-track {
    background: #202020;
    /* Dark background for the track */
}

body::-webkit-scrollbar-thumb {
    background: #444;
    /* Color of the scrollbar */
    border-radius: 10px;
    /* Round edges */
}

body::-webkit-scrollbar-thumb:hover {
    background: #666;
    /* Change color on hover */
}

input,
select,
button,
textarea {
    border: none;
    /* Remove all borders */
    border-radius: 0;
    /* Remove rounded corners */
    outline: none;
    /* Remove focus outlines */
    box-shadow: none;
    /* Remove shadows */
    appearance: none;
    /* Normalize styles across browsers */
    background-clip: padding-box;
}


table {
    width: 600px;
    text-align: left;
}

table th {
    color: White;
    border-bottom: 0.8px solid #373737;
    padding-bottom: 5px;
    position: sticky;
}

table td {
    color: white;
    border-bottom: 0.8px solid #373737;
    padding: 5px;
    font-weight: 200;
    justify-content: center;
}

table a {
    text-decoration: none;
    color: white;
}

h1,
h2 {
    margin: 20px 0;
    color: White;
}

label {
    margin-bottom: 8px !important;
    margin-top: 10px !important;
    /* Ensures all labels get margin */
    display: block;
    /* Ensures labels behave like block elements */
}

input[type="datetime-local"] {
    height: 40px;
    /* Match other input fields */
    padding: 8px 10px;
    /* Consistent padding */
    font-size: 16px;
    /* Match font size with other inputs */
    border-radius: 5px;
    /* Optional: Match rounded corners */
    appearance: none;
}

a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

a:hover {
    color: #007BFF;
}

/* ✅ Global Scrollbar */
*::-webkit-scrollbar {
    width: 8px;  /* Width of the scrollbar */
}

/* ✅ Track (background of the scrollbar) */
*::-webkit-scrollbar-track {
    background: #2a2a2a;  /* Track background color */
    border-radius: 10px;   /* Optional: round corners */
}

/* ✅ Scrollbar Thumb (the draggable part) */
*::-webkit-scrollbar-thumb {
    background: #555;  /* Default color */
    border-radius: 10px;  /* Round edges */
}

/* ✅ Scrollbar Thumb Hover Effect */
*::-webkit-scrollbar-thumb:hover {
    background: #777;  /* Darker color when hovered */
}


.note-content.editing {
    border: 1px solid #555;
    padding: 4px;
    border-radius: 6px;
    background-color: #191919;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    display: block;
}

.employee-profile-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    align-items: center;
    display: flex;
    justify-content: center;
}

.employee-approval-table {
    border-collapse: separate;
    border-spacing: 0px 13px;
    border-radius: 6px;
    overflow: hidden;
    max-height: 100px;
    z-index: 1;
    width: 820px;

}

.approved-requests-wrapper {
    background-color: #333;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    max-width: fit-content;
    max-height: 800px;
    overflow: auto;
}

/* Ensure only the first and last td in each row have border-radius */
.employee-approval-table tr td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.employee-approval-table tr td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    width: auto;
}

.employee-approval-table td {
    border: none;
    background-color: #202020;
    border-radius: 0;
}

.employee-approval-table th {
    border: none;
}

.employee-approval-table thead tr th:first-child {
    border-top-left-radius: 6px;
}

.employee-approval-table thead tr th:last-child {
    border-top-right-radius: 6px;
}


.absence-table {
    border-collapse: separate;
    border-spacing: 0px 13px;
    border-radius: 6px;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    max-width: 750px;
}

.absence-table tr td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.absence-table tr td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.absence-table td {
    border: none;
    background-color: #202020;
    border-radius: 0;
}

.absence-table th {
    border: none;
}

/* Apply border-radius to table header (optional) */
.absence-table thead tr th:first-child {
    border-top-left-radius: 6px;
}

.absence-table thead tr th:last-child {
    border-top-right-radius: 6px;
}

.absence-table-wrapper {
    max-height: 400px;  /* Limit height to prevent infinite scrolling */
    overflow-y: auto;   /* Enable vertical scrolling */
    border-radius: 6px;
    border: 0.5px solid #2A2A2A;
    width: 820px;
    padding: 20px 40px;
    margin-top: 10px;
    background-color: #333333;
    width: fit-content;
}

.absence-table-wrapper::after,
.absence-list-mobile::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}


.notes-table {
    border: none;
    width: 800px;
    border-collapse: separate;
    border-spacing: 0px 13px;
    border-radius: 6px;
    table-layout: fixed;
}

.notes-table tr td:first-child {
    border-radius: 6px;
}

.notes-table tr td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    width: 10%;
}

td.note-highlight {
    background-color: #369535 !important;
    font-weight: 500;
    width: 300px !important;
    white-space: nowrap;
    overflow: hidden;
}


.notes-table th {
    font-size: 14px;
    text-align: center;
    border: none;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px;
    border-radius: 6px;
}

.notes-table td {
    border: none;
    border-radius: 0;
    background-color: #202020;
    padding: 10px;
}

.notes-table-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px 40px;
    border-radius: 6px;
    border: 0.5px solid #2A2A2A;
    width: 820px;
    background: #333;
}

.new-employee-table {
    align-items: center;
    text-align: left;
    min-width: 600px;
    width: auto;
    border-collapse: separate;
    border-spacing: 0px 13px;

}

.new-employee-table th {
    font-size: 14px;
    text-align: left;
    border: none;


}

.new-employee-table td {
     border: none;
     border-radius: 0;
     padding-top: 5px;
}



.employee-table {
    align-items: center;
    text-align: left;
    width: auto;
    border-collapse: collapse;
    display: table;
    text-align: left;
    overflow-x: auto;
}

.employee-table th {
    font-size: 14px;
    text-align: center;
    border: none;

}

.employee-table td {
    border: none;
}

.group-table {
    width: 350px;
}

.centerd {
    text-align: center;
}

.table-box {
    border-radius: 6px;
    width: 780px;
    padding: 10px 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 0.5px solid #2A2A2A;

}

.archive {
    font-size: 10px;
    width: 700px;
    text-align: center;
}

.section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.upper-section {
    padding-top: 20px;
}

.padding {
    padding-top: 50px;
}

.filter {
    width: auto;
    padding: 10px;
    background-color: #333333;
    color: white;
    border-radius: 6px;
}

.absence-filter {
    width: auto;
    padding: 10px;
    background-color: #191919;
    color: white;
    border-radius: 6px;
}

.filter:hover {
    color: White;
    transition: color 0.3s ease;
}

.no-border {
    border: none;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;


}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    color: #fff;
    background-color: #333333;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    border-radius: 5px;
    padding: 10px 0;
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.5s;
    transition-delay: 0.5s;
    border: 0.5px solid #2A2A2A;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip i:hover {
    color: #2F6AD2;
    visibility: visible;
}

.table-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
    scrollbar-width: thin;
    scrollbar-color: #202020 #191919;
}



.table-container thead th {
    position: sticky;
    top: 0;
    background-color: #202020;
    /* your desired background */
    color: white;
    /* ensure text is visible */
    z-index: 2;
    padding: 8px;
    border-radius: 6px;
}


.logo-size-big {
    height: 80px;
}

.small-divider {
    border: 0.2px solid white;
}

.standard-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 230px;
    font-size: 23px;
}


.standard-button:hover {
    background-color: #1cbdba;
}

.link-button {
    padding: 10px 20px;
    background-color: #2F6AD2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 230px;
    font-size: 14px;
}

.link-button:hover {
    background-color: #0051a8;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

}

.profile-section {

    display: inline-flex;
    gap: 20px;
    align-items: flex-start;

}

.inner-profile-section {
    background-color: #202020;
    border-radius: 8px;
    padding: 20px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.inner-profile-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 50px;
    align-items: start;
}

.inner-profile-column p {
    margin: 0;
}


.icon-button {
    background-color: transparent;
    padding: 5px;
    width: auto;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    gap: 10px;
    color: #aaaaaa;
}

.icon-button:hover i {
    color: white;
}


.icon-button:hover {
    background-color: transparent;
    color: white;
}

.icon-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.warning-msg {
    display: block;
    font-size: 14px;
    color: #FF0000;
    margin-top: 5px;
}


.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 0;
    width: 100%;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-metadata {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
}

.mini-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.mini-menu:hover {
    color: #2F6AD2;
    border-bottom: 1px, solid #1cbdba;
}


/* Default mini-menu button style */
.mini-menu button {
    background: none;
    border: none;
    color: #969696;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 6px;
    transition: color 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.mini-menu button:hover {
    color: white;
}


.mini-menu a.active button {
    background-color: #2F6AD2;
    color: white;
    border-radius: 6px;
}


.mini-menu a.active button i {
    color: white;
}

.vertical-div {
    width: 1px;
    height: 30px;
    background-color: #5B5B5B;
    margin: 0 10px;
}



.calendar-container {
    width: 100%;
    overflow-x: auto;
    /* Allows scrolling if content is too wide */
}


.divider {
    border: 1px solid white;
    width: 500px;
    border: 0;
    height: 1px;
    background-color: #5b5b5b;
    margin-bottom: 20px;
    margin-left: 0;
    margin-top: 0;
}

.sidebar {
    width: 250px;
    height: calc(100vh - 37px);
    position: fixed;
    left: 0;
    top: 37px;
    background-color: #202020;
    color: white;
    transition: width 0.3s ease, transform 0.3s ease-in-out;
    overflow-x: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
    overflow-y: auto;
}


.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.main-content {
    margin-left: 270px;
    transition: margin-left 0.3s ease-in-out;
    color: white;
    background-color: #191919;
    padding-top: 60px;
    padding-right: 20px;
    margin-bottom: 20px;
}

.sidebar.collapsed {
    margin-left: 60px;
    /* Matches collapsed sidebar */
}


/* Collapsed sidebar state */
.sidebar.collapsed {
    width: 60px;
}

/* Sidebar toggle button */
.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 15px;
    left: auto;
    right: 15px;
    /* Default: Align to the right when expanded */
    transition: left 0.3s ease-in-out, right 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* When sidebar is collapsed, center the arrow */
.sidebar.collapsed .sidebar-toggle {
    left: 50%;
    right: auto;
    /* Reset right position */
    transform: translateX(-50%);
    /* Centers the arrow horizontally */

}

.logo-size {
    max-width: 30px;
    max-height: 30px;
    margin-right: 10px;
}



/* Navigation menu styles */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar ul li {
    padding: 0;
    margin: 5px 0;
    transition: background-color 0.2s;
}

.sidebar ul li a {
    padding: 12px 20px;
    display: block;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar ul li a:hover {
    background-color: #333;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  background-color: #333; /* or your desired hover background color */
}


/* Logout button styles */
.logout-button {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.logout-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #202020;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 16px;
    gap: 8px;
}

.logout-button a i {
    font-size: 18px;
}

.logout-button a:hover {
    background-color: #c82333;
}

.logout-div {
    background-color: #333333;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid #555555;
}

.social-icons {
    padding: 10px;
    display: flex;
    gap: 10px;
    background color: transparent;
    justify-content: center;
}

/* Adjustments for collapsed state */
.sidebar.collapsed .dropdown-container,
.sidebar.collapsed .dropdown-toggle {
    display: none;
}

.dropdown-container {

    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #aa161b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar.collapsed ul li a {
    padding: 15px 0;
    text-align: center;
}

.sidebar.collapsed ul li a i,
.sidebar.collapsed ul li a::before {
    margin: 0 auto;
    font-size: 20px;
}

/* Hide text in collapsed mode */
.sidebar.collapsed .logo-container span,
.sidebar.collapsed ul li a span {
    display: none;
}

.logo-container {
    text-decoration: none;
    display: flex;

    padding: 10px;
    color: white;
    font-size: 12px;
    align-items: center;
    /* Keeps items aligned vertically in the center */
    z-index: 3000;
}



/* Sidebar overlay when opened on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Show overlay when sidebar is open */
.sidebar.open+.sidebar-overlay {
    display: block;
}



.header {
    display: column;
}



.header-flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.flex-desk-column-mobile {
    display: flex;
    gap: 20px;

}

.section-flex {
    padding: 5px;
    gap: 40px;
    flex-wrap: wrap;
}

.section-box {
    background-color: #202020;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    border-radius: 6px;
    width: fit-content;
    border: 0.5px solid #2A2A2A;
    overflow: hidden;
    max-width: 250px;
}

.email-container {
    display: inline-flex;
    /* ✅ This makes it adjust dynamically */
    background-color: #3A3B3D;
    align-items: center;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 0;
    max-width: fit-content;
    /* ✅ Adjusts width based on content */
    border-radius: 50px;
    white-space: nowrap;
    /* ✅ Prevents line breaks */

}

.profile-grid {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* ✅ Ensures the input aligns properly */
.email-container input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 5px 0;
    /* ✅ Adjust padding for better alignment */
    line-height: 1;
    /* ✅ Reduce extra spacing inside input */
    vertical-align: center;
    /* ✅ Ensures alignment */
    color: white;
}


.header-text {
    font-size: 30px;
    font-weight: 900;
    color: white;
}

.form-group {
    margin-bottom: 15px;
    flex-direction: column;
    display: flex;
    max-width: 300px;

}

.centerd-form-group {
    margin-bottom: 15px;
    flex-direction: column;
    display: flex;
    align-items: center;
}

.form-group label {
    margin-bottom: 10px;
    font-size: 12px;
    color: #757575;
    text-align: left;
}


.form-container {
    display: grid;
    grid-template-columns: 0fr 1fr;
    gap: 20px;
}


.subheader-text {
    font-size: 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #202020;
    color: #9B9B9B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-title {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    flex-grow: 1;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 43px;
    /* Adjust spacing between elements */
    flex-grow: 1;
    /* Allows page title to expand naturally */
}

.profile-container {

    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ccc;
    position: relative;
    align-items: center;
    justify-content: center;
}

.mini-profile-picture {
    width: 35px;
    height: 35px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 50%;
    display: block;
    margin: auto 0;
}

.profile-container-big {
    display: inline-block;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-left: 5px;
    border: 0.5px solid white;
    padding: 15px;
}



.profile-picture-container {
    text-align: left;
    margin-bottom: 20px;
}

.profile-picture-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;

}

.profile-picture {
    width: 60px;
    height: 60px;
    object-fit: cover;
    transition: filter 0.3s ease-in-out;

}

.profile-picture-wrapper:hover .profile-picture {
    filter: blur(4px);
}

.form-section {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    color: white;
    max-width: 350px;
    background-color: #191919;
}

.form-section.active {
    display: flex;
    padding-top: 30px;

}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.profile-picture-wrapper:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.role-tag {
    background-color: #2F6AD2;
    color: White;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 6px;
    font-weight: 600;

}

.role-tag:hover {
    background-color: #2F6AD2;
}

.group-tag {
    background-color: #007fff;
    color: White;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 40px;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: White;
}

  /* Container for the password input and toggle icon */
  .password-container {
    position: relative;
    width: 100%;
  }

  .password-container input {
    width: 100%;
    height: 40px;            /* Fixed height for consistency */
    padding-right: 40px;      /* Provide space for the icon */
    box-sizing: border-box;
    font-size: 16px;          /* Ensure a consistent font size */
  }

  .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 16px;
    cursor: pointer;
    color: #ccc;
    height: 30px;           /* Same as the input height */
    line-height: 22px;       /* This centers the icon vertically */
    align-items: center;
    justify-content: center;
  }

  /* Change icon color on hover */
  .password-toggle:hover {
    color: #2F6AD2;
  }

.form-control {
    width: 100%;
    /* Full width */
    max-width: 300px;
    /* Consistent with other inputs */
    padding: 23px;
    /* Uniform padding */
    margin-bottom: 15px;
    border: none;
    border-bottom: 0.5px solid #ccc;
    background-color: #191919;
    /* Match input background */
    color: white;
    /* Ensure text is visible */
    box-sizing: border-box;
    /* Include padding in width */
    font-size: 18px;
    /* Consistent font size */
    appearance: none;
    /* Remove browser default styles */
    box-shadow: none;
}

.form-control select {
    appearance: none;
    /* Remove default dropdown styles */
    width: 100%;
    /* Full width */
    max-width: 260px;
    /* Align with other inputs */
    padding: 23px;
    /* Match input padding */
    border: none;
    border-bottom: 0.5px solid #ccc;
    color: white;
    /* Text color */
    box-sizing: border-box;
    /* Include padding and border */
    font-size: 18px;
    /* Consistent font size */
    height: auto;
    /* Adjust height */
    line-height: normal;
    /* Reset line height */
    background-repeat: no-repeat;
    background-position: right 10px center;
    /* Arrow position */
    background-size: 10px;
    padding-right: 30px;
    /* Space for the arrow */
}

.form-control option {
    background-color: #191919;
    /* Dropdown options background */
    color: white;
    /* Text color for dropdown options */
    font-size: 18px;
    /* Consistent font size */
}


.form-control-table {
    width: 100%;
    /* Full width */
    max-width: 300px;
    /* Consistent with other inputs */
    padding: 10px;
    /* Uniform padding */
    border-radius: 6px;
    border: none;
    background-color: #2F6AD2;
    /* Match input background */
    color: white;
    /* Ensure text is visible */
    font-size: 14px;
    /* Consistent font size */
    appearance: none;
    /* Remove browser default styles */
    box-shadow: none;
    cursor: pointer;
    text-align: center;
}

.form-control-table option {
    background-color: #191919;
    /* Dropdown options background */
    color: white;
    /* Text color for dropdown options */
    font-size: 14px;
    /* Consistent font size */
    background-color: #3A3B3D;
}

.column-form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row;
    font-size: 18px;
    color: #757575;
    justify-content: space-between;
}

button {

    border: none;
    background-color: transparent;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.alert-button {
    background-color: transparent;
    border: 1px solid #ad0000;
    color: white;
    padding: 5px;
    border-radius: 6px;
    width: 250px;
}


.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #aa161b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.add-button:hover {
    color: #934646;
    transform: scale(1.1);
}

.add-button i {
    margin-right: 10px;
    font-size: 60px;
}

.add-button-dropdown {
    position: absolute;
    bottom: 66px;
    right: 74px;
    background-color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    width: 200px;

}

.add-button-dropdown a {
    padding: 10px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
}

.add-button-dropdown a:hover {
    background-color: #f0f0f0;
    color: #000;
    border-radius: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: -70px;
    /* Adjust to move below the button */
    right: 0;
    /* Move the dropdown to the left of the button */
    background-color: #202020;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.employee-dropdown-menu {
    display: none;
    position: absolute;
    right: 48px;
    background-color: #333;
    border-radius: 6px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
    top: 88px;

}

.employee-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.employee-dropdown-menu a:hover {
    background-color: #f0f0f0;
    border-radius: 6px;
    color: #000;
}



.header-paragraph {
    max-width: 600px;
}

.preschool-dropdown-menu {
    position: absolute;
    top: 80%;
    left: 73px;
    background-color: #333;
    min-width: 150px;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

.preschool-dropdown-menu a {
    padding: 10px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
}

.preschool-dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
}


.transparent-button {
    font-size: 18px;
    background-color: transparent;

}

/* Modal content */
.modal-content {
    background-color: #191919;
    margin: 15% auto;
    padding: 20px;
    padding-top: 15px;
    padding-bottom: 35px;
    border: none;
    width: 90%;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    flex-direction: column;
}

/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-align: right;
}

.close-button:hover,
.close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* Container for checkboxes - FLEX to keep everything in one horizontal line */
.calendar-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* Label Styling for consistent spacing */
.filter-label {
    display: flex;
    align-items: center;
    /* Aligns checkbox & text vertically */
    gap: 8px;
    /* Space between checkbox and text */
    font-size: 16px;
    /* Readable text */
    font-weight: 500;
    cursor: pointer;
}

/* Custom Checkbox Styling */
.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    border: 2px solid currentColor;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    vertical-align: middle;
    /* Keep checkboxes in line with text */
    margin-bottom: 2px;
    /* Slight downward shift to balance */
}

/* Colors for different event types */
.filter-checkbox[data-type="events"] {
    color: #337DFF;
}

/* Blue */
.filter-checkbox[data-type="vacation"] {
    color: #8E24AA;
}

/* Purple */
.filter-checkbox[data-type="sick leave"] {
    color: #FFB600;
}

/* Yellow */
.filter-checkbox[data-type="day off"] {
    color: #28A745;
}

/* Green */
.filter-checkbox[data-type="unpaid leave"] {
    color: #FF0000;
}

/* Red */

/* ✅ Fill checkbox when checked & add transparent checkmark */
.filter-checkbox:checked {
    background-color: var(--checkbox-color);
    border-color: var(--checkbox-color);
}

/* ✅ Assign colors dynamically */
.filter-checkbox[data-type="events"]:checked {
    --checkbox-color: #337DFF;
}

.filter-checkbox[data-type="vacation"]:checked {
    --checkbox-color: #8E24AA;
}

.filter-checkbox[data-type="sick leave"]:checked {
    --checkbox-color: #FFB600;
}

.filter-checkbox[data-type="day off"]:checked {
    --checkbox-color: #28A745;
}

.filter-checkbox[data-type="unpaid leave"]:checked {
    --checkbox-color: #FF0000;
}

/* ✅ Transparent checkmark inside checkbox */
.filter-checkbox:checked::after {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
    color: #191919;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover effect for interaction */
.filter-checkbox:hover {
    opacity: 0.8;
}

/* Flash messages container */
#flash-messages {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 1000;
    background-color: #202020;
    color: white
}

/* Flash message styles */
.flash-message {
    padding: 10px 20px;

    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

/* Success message */
.flash-message.success {
    background-color: #4CAF50;
    color: white;
}

/* Error message */
.flash-message.danger {
    background-color: #f44336;
    color: white;
}

/* Warning message */
.flash-message.warning {
    background-color: #202020;
    color: white;
}

/* Info message */
.flash-message.info {
    background-color: #2196F3;
    color: white;
}

.empty-table-message {
    font-style: italic;
    color: #888;
    padding: 15px;
    font-size: 16px;
    width: 100%;
    display: table-cell;
    border: none;
}

.empty-table-message i {
    font-size: 20px;
    margin-right: 8px;
    color: #666;
}

.close-flash {
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
}

.notification-container {
    position: relative;
    display: inline-block;
}

.clear-notifications {
    cursor: pointer;
    text-align: right;
    padding: 6px;

}

.notification-bell {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: relative;

}

.notification-bell:hover {
    color: #FFB600;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #aa161b;
    color: white;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 50%;
    display: none;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #2C2C2C;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 5px;
    z-index: 1000;
}

.notification-item a {
    text-decoration: none;
    padding: 10px;
    margin-left: 0;
    margin-right: 0;
    color: white;
    border-radius: 5px;
    display: block;

}

.notification-item a:hover {
    text-decoration: none;
    font-weight: 400;
    background-color: white;
    color: black;

}

.no-notifications {
    text-align: center;
    padding: 10px;
    color: gray;
}

#calendar {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background-color: #1F1F1F;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    margin-left: 0;
    margin-right: auto;
    margin-top: 20px;
    padding: 15px;
}

.fc-event {
    border-radius: 6px;
    font-weight: bold;
}

.fc-event:hover {
    opacity: 0.8;
    cursor: pointer;
}

.fc-theme-standard td, .fc-theme-standard th {
    border: 0.1px solid #2A2A2A;
    border-radius: 6px;
}

/* Override FullCalendar day header background */
.fc-col-header-cell, .fc-col-header-cell-cushion {
    background-color: #191919 !important; /* Change to your desired color */
    color: white; /* Optional: change the text color if needed */
  }


.fc-theme-standard .fc-scrollgrid {
    border: 0.1px solid #2A2A2A;
    border-radius: 6px;
}

.inline-search-container {
    position: relative;
    align-items: center;
    max-width: 216px;
    width: 100%;
}

#employeeSearch {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    outline: none;
    position: relative;
    z-index: 2;

}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

#employeeResultsContainer {
    position: fixed;
    width: auto;
    min-width: 250px;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

/* Prevent dropdown from showing if no results */
#employeeResultsContainer:empty {
    display: none;
}

/* Style each dropdown item */
#employeeResultsContainer div {
    padding: 10px;
    cursor: pointer !important;
    /* ✅ Ensures pointer cursor */
    transition: background 0.2s ease-in-out;
    font-size: 14px;
}

/* Hover effect */
#employeeResultsContainer div:hover {
    background: #f0f0f0;
}

/* Selected item */
#employeeResultsContainer div.selected {
    background: #007bff;
    color: white;
}

.floating-modal {
    position: fixed;
    /* Ensures it stays within viewport */
    z-index: 9999;
    background: #333333;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 400px;
    overflow-wrap: break-word;
    /* Ensures text wraps properly */
    transition: top 0.2s, left 0.2s;
    /* Smooth repositioning */
}

.floating-modal.hidden {
    display: none;
}

.floating-modal-content {
    position: relative;
    align-items: right;
}

.modal-btn {
    margin: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

#adminControls {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-right: 10px;
    gap: 8px;
}



#selectedRolesContainer:empty::before {
    color: #757575;
    /* Light grey text for visibility */
    font-size: 14px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#locationsSelect {
    width: 100%;
    /* Ensures it takes up the full available width */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #191919;
    color: white;
    /* ✅ Ensures selected text is white */
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    /* Removes default browser styling */
}

.role-badge {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    font-size: 14px;
}

.absence-badge {
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    background-color: #aa161b;
    margin-left: 3px;
    display: inline-block;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    padding-right: 11px;
    padding-left: 9px;
    padding-top: 5px;
    padding-bottom: 5px;
}


.remove-role {
    cursor: pointer;
    margin-left: 4px;
    color: #f44336;
}

#selectedRolesContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
}


/* 🔹 Modal Overlay */
.calendar-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* 🔹 Modal Content */
.calendar-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #191919;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
}


/* 🔹 Role Container */
.role-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 🔹 Small Button (For Select All Roles) */
.small-button {
    padding: 8px;
    font-size: 14px;
    width: auto;
    text-align: right;
}

/* 🔹 Modal Title */
.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.employee-link:hover {
    color: #2F6AD2 !important;
}

/* 🔹 Improved Event Form Layout */
.event-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* 🔹 Left & Right Section Styling */
.left-content,
.right-content {
    width: 48%;
    display: flex;
    flex-direction: column;
}

/* 🔹 Labels */
.event-form label {
    font-size: 14px;
    font-weight: 500;
    color: #9B9B9B;
    margin-bottom: 5px;
    padding: 0;
}

.event-form-control {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #191919;
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 250px;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-form-control p {
    color: #757575;
    margin-top: 0;
}



/* 🔹 Role Dropdown Options */
.dropdown-item {
    padding: 10px;
    background-color: #191919;
    color: white;
    font-size: 16px;
    cursor: pointer;
    /* ✅ Makes it look clickable */
    transition: 0.2s ease-in-out;
    z-index: 1000;
    border-radius: 6px;
    border: 0.5px solid #007BFF;
    margin-bottom: 10px;
}

/* 🔹 Hover Effect */
.dropdown-item:hover {
    background-color: #007BFF;
    /* Highlight when hovered */
}

.event-form-group {
    margin-bottom: 15px;
    flex-direction: column;
    display: flex;
    max-width: 250px;
    width: 100%;

}

/* Ensure all input fields, selects, and textareas have the same width */
.event-form-control,
.event-form-control select,
.event-form-control textarea {
    width: 100% !important;
    /* Force full width */
    max-width: 250px !important;
    /* Match all input fields */
    min-width: 250px !important;
    /* Prevent shrinking */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #191919;
    box-sizing: border-box;
    appearance: none;
    /* Remove default browser styles */
}

/* Force dropdown (select) width consistency */
.event-form-control select {
    display: block !important;
    width: 100% !important;
    max-width: 250px !important;
    min-width: 250px !important;
    padding: 10px;
}

/* Fix the dropdown icon so it aligns properly */
.event-form-control select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path fill="gray" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
    /* Space for the arrow */
}

.cycle-row {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    cursor: pointer;
    /* Standard */
}

.cycle-box {
    margin-top: 10px;
    backgorund-color: white;
}

/* For the collapsible details table inside the row */
table.cycle-box {
    border: none;
    background-color: #202020;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    padding: 15px;
}

table.cycle-box th,
table.cycle-box td {
    border: none;
    padding: 8px;
    color: white;
}
.absence-label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
    color: white;
}

.vacation-label {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
    color: white;
}

.vacation-active {
    border: 1px solid green;
}

.vacation-old {
    border: 1px solid orange;
}


/* Specific Absence Type Colors */
.vacation {
    background-color: #8E24AA;
}

.sick-leave {
    background-color: #D19705;
}

.day-off {
    background-color: #258A3C;
}

.unpaid-leave {
    background-color: #D20606;
}

.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    /* Adjust based on font size */
}

.expanded {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
}

.all-absence-table {
    text-align: left;
    border-collapse: separate;
    border-spacing: 0px 13px;
    border-radius: 6px;
    overflow: visible;
    z-index: 1;
    width: 560px;
    max-width: 750px;
}

.all-absence-table td,
.all-absence-table th {
    border: none;
}

.all-absence-table td:first-child {
    width: 60%;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.all-absence-table td:nth-child(2),
.all-absence-table td:nth-child(3) {
    width: 20%;
}

.all-absence-table td:last-child {
    width: 20%;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    max-width: 50px;
}



.all-absence-table td {
    border: none;
    background-color: #202020;
    border-radius: 0;

}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.status-tag {
    font-weight: bold;
}

/* Orange for pending tasks */
.status-tag.pending {
    color: orange;
}

/* Red for overdue tasks */
.status-tag.overdue {
    color: red;
}

.task-filters {
    display: flex;
    gap: 10px;
}

.filter-button {
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-button.active {
    background-color: #3066be;
    color: white;
    border-color: #3066be;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px; /* Adjust this value as needed */
    overflow-y: auto;
    max-width: 536px;
    border: 0.5px solid #2A2A2A;
    border-radius: 6px;
    padding: 10px 20px;
}

#taskTitle {
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    max-width: 245px;
  }

  .badge {
    background-color: #4caf50;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.task-meta {
    font-size: .9rem;
    color: #777;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.task-actions {
    margin-top: 0.5rem;
}

.border-blue { border-color: #2196f3; }
.border-red { border-color: #e53935; }
.border-green { border-color: #4caf50; }

.mark-done-button {
    background-color: #2F6AD2;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.mark-group-done-button {
    background-color: #2F6AD2;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.disabled-button {
    background-color: #ddd;
    color: #777;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
}

.task-filter .icon-button.active {
    font-weight: bold;
}

  .task-card {
    border: 1px solid #444;  /* default border for all sides */
    /* other styles */
  }

  /* Override the left border based on task type */
  .task-card.group-task {
    border-left: 5px solid #607D8B;
  }

  .task-card.admin-task {
    border-left: 5px solid #aa161b;
  }

  .task-wrapper {
    background-color: #333;
    width: fit-content;
    padding: 25px;
    border-radius: 6px;
    max-height: 265px;
    overflow: auto;
}

  .task-card.individual-task {
    border-left: 5px solid #ad1457;
  }
  .individual-button {
    background-color: #333333;
    color: white;
    padding: 5px 8px;
}

.individual-button.active {
    background-color: #ad1457;
    color: white;
    border-radius: 6px;

}


/* Styles for group task button */
.group-button {
    background-color: #333333;
    color: white;
    padding: 5px 8px;
}

.group-button.active {
    background-color: #607D8B;
    color: white;
    border-radius: 6px;

}

  .group-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 8px;
}

.group-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px;
    background-color: #191919;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.group-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.group-checkbox .group-label {
    padding-left: 30px;
    position: relative;
    flex-grow: 1;
}

.group-checkbox .group-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.group-checkbox input:checked + .group-label::before {
    background-color: #007bff;
    content: '✓';
    color: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}



.group-checkbox.hidden {
    display: none;
}

.group-checkbox input:checked + .group-label {
    font-weight: bold;
    color: #007bff;
}

.group-checkbox input:checked {
    background-color: #007bff;
}

.task-complete-table {
    border-collapse: separate;
    border-spacing: 0 13px;
    border-radius: 6px;
    overflow: hidden;
    z-index: 1;
    width: 350px;
    text-align: left;


}

.task-complete-wrapper {
    border: 0.5px solid #2A2A2A;
    border-radius: 6px;
    overflow: auto;
    width: 100%;
    max-width: 364px;
    padding: 5px 10px;
    max-height: 300px;
}

.task-complete-table tr td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.task-complete-table tr td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.task-complete-table td {
    border: none;
    background-color: #202020;
    border-radius: 0;
}

.task-complete-table th {
    border: none;
}

/* Apply border-radius to table header (optional) */
.task-complete-table thead tr th:first-child {
    border-top-left-radius: 6px;
}

.task-complete-table thead tr th:last-child {
    border-top-right-radius: 6px;
}

.name-tag {
    background-color: #2f6ad2 !important;
    color: white;
    padding: 0px 5px;
    border-radius: 6px;
  }

  .task-layout {
    display: flex;
    justify-content: flex-start;
  }

  .all-tasks-table {
    text-align: center;
    border-collapse: separate;
    border-spacing: 0px 13px;
    border-radius: 6px;
    overflow: visible;
    z-index: 1;
    width: 100%;
    max-width: 750px;
    min-width: 450px;
}

.all-tasks-table td,
.all-tasks-table th {
    border: none;
}

.all-tasks-table tr td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-left: 3px solid #4CAF50;
    text-align: left;
    max-width: 190px;
    overflow: hidden;
}

.all-tasks-table tr td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    text-align: center;

}


.all-tasks-table td {
    border: none;
    background-color: #202020;
    border-radius: 0;

}

.individual-tasks-table tr td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-left: 3px solid #ad1457; /* Green for individual tasks */
    text-align: left;
}

.group-tasks-table tr td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    text-align: left;
    border-left: 3px solid #607D8B;
}


/* Blue background for group tasks */
.completed-task.group {
    background-color: #607D8B; /* light blue */
}

/* Green background for individual tasks */
.completed-task.individual {
    background-color: #AD1457; /* light green */
}

/* Optional: smooth border & padding */
.completed-task.group td:first-child,
.completed-task.individual td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.completed-task.group td:last-child,
.completed-task.individual td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.completed-task-table {
    border-collapse: separate;
    border-spacing: 0px 6px;
    width: 100%;
    max-width: 400px;
    min-width: 400px;
}

.completed-task-table th {
    border: none;
}

.employees-header {
    display: flex;
    gap: 20px;
}

.employees-header-box {
    background-color: #333;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.pending-box {
    background-color: #b36b30;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.pending-box:hover {
    background-color: #333333;
    color: white;
}

.task-row-link {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
}

.task-row-link:hover {

    background: #AD1457;
    color: white;
}

.task-card-lower-section {
    display: flex
;
    justify-content: space-between;
    align-items: flex-end;
}

.group-row-link {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
}

.group-row-link:hover {
    background: #607d8b;
    color: white;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.priority-badge.high {
    background-color: #dc3545; /* red */
}

.priority-badge.medium {
    background-color: #F19D04; /* yellow */

}

.priority-badge.low {
    background-color: #28a745; /* green */
}

.weakly-absences {
    width: fit-content;
    max-width: 400px;
    min-width: 300px;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0px 13px;

}

.weakly-absences td {
    border: none;
    background: #777777;
    vertical-align: middle;
}

.weakly-absences td:first-child {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    padding-left: 15px;
    width: 19%;
}

.weakly-absences td:last-child {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.weakly-absences th {
    border: none;
}

.day-wrapper {
    border-radius: 6px;
    background-color: #333;
    padding: 5px;
    width: fit-content;
    margin: 0;
}

.location-wrapper {
    border-radius: 6px;
    background-color: #b36b30;
    padding: 5px;
    width: fit-content;
}

.weakly-absence-wrapper {
    background: #313131;
    border-radius: 6px;
    padding: 5px 25px;
    max-height: 807px;
    overflow: hidden;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    position: relative;
    padding-top: 12px;
  }

  .document-tile {
    text-align: center;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    overflow: visible; /* 👈 allows buttons to render outside */
    transition: 0.2s ease;
  }

  .tile-buttons {
    position: absolute;
    top: -10px; /* ⬅️ pull buttons higher */
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
  }


  .tile-buttons i {
    color: white;
    font-size: 16px;
  }

  .tile-buttons i:hover {
    color: #aaaaaa;
  }

  .document-tile:hover .tile-buttons {
    opacity: 1;
    pointer-events: auto;
  }

  .document-tile {
    text-align: center;
    border-radius: 12px;
    padding: 12px;
    transition: 0.2s ease;
  }

  .document-tile:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .collapsible-grid-wrapper {
    position: relative;
  }

  .grid-clipper {
    --tile-row-height: 140px;
    --max-rows: 1;
    max-height: calc(var(--tile-row-height) * var(--max-rows));
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .grid-clipper.expanded {
    max-height: 9999px;
  }

  /* 🗂 File Icon (Doc Look) */
  .file-icon {
    position: relative;
    width: 60px;
    height: 75px;
    margin: 10px 25px;
    margin-top: 0px;
    background: #fff;
    border: none;
    border-radius: 4px;
  }




  .file-expiry-tag {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745; /* ✅ Green background */
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;      /* ✅ Smaller font size */
    border-radius: 3px;
    white-space: nowrap;
    z-index: 2;
  }

  .file-expiry-tag.expired {
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    top: 13px;
    left: 13px;
    font-weight: bold;
}



.file-icon:hover {
    background: #aaaaaa;
}

  .file-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: #191919;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    border: none;
}


  .file-extension {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
  }

  /* 🔵 Blue for doc/docx */
  .ext-doc,
  .ext-docx {
    background-color: #007bff;
  }

  /* 🔴 Red for pdf */
  .ext-pdf {
    background-color: #dc3545;
  }

  /* 🟠 Orange for images */
  .ext-jpg,
  .ext-jpeg,
  .ext-png,
  .ext-gif,
  .ext-webp {
    background-color: #fd7e14;
  }


  /* Metadata */
  .file-label {
    font-weight: 600;
    font-size: 14px;

    word-break: break-word;
  }

  .file-name {
    font-size: 12px;
    color: #666;
    word-break: break-word;
  }

  .file-label,
.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.doc-category-heading {
    font-size: 12px;
    font-weight: bold;
    background: #B36B30;
    padding: 5px 10px;
    border-radius: 6px;
    width: fit-content;
}


.doc-preview-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .doc-preview-modal-content {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    color: white;
    position: relative;
  }

  .doc-preview-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }

.deleted-docs-table {
    max-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
}
.deleted-docs-table td {
    border: 1px solid #202020;
    padding: 10px 20px;
}

.deleted-docs-table th {
    border: none;
}

/* First row - top corners */
.deleted-docs-table tbody tr:first-of-type td:first-child {
    border-top-left-radius: 6px;
}
.deleted-docs-table tbody tr:first-of-type td:last-child {
    border-top-right-radius: 6px;
}

/* Last row - bottom corners */
.deleted-docs-table tbody tr:last-of-type td:first-child {
    border-bottom-left-radius: 6px;
}
.deleted-docs-table tbody tr:last-of-type td:last-child {
    border-bottom-right-radius: 6px;
}


@media (max-width: 768px) {

    .individual-button {
        font-size: 16px;
    }

    .group-button {
        font-size: 16px;
    }

    .hide-mobile {
        display: none;
    }

    .all-tasks-table {
        max-width: 340px;
        width: 100%;
        min-width: 340px;
    }

    .employees-header {
        display: none;
    }

    .task-layout {
       flex-direction: column;
       gap: 20px;
    }

    .task-wrapper {
        padding: 20px 10px;
        width: 100%;
        max-width: 347px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 250px;
        height: calc(100vh - 37px); /* Same adjustment here */
        position: fixed;
        background-color: #202020;
        z-index: 2000;
        left: 0;
        top: 37px;
    }

    .sidebar-bottom {
        position: relative; /* Ensure it's in the document flow */
        display: block; /* Force display */
        visibility: visible;
        opacity: 1;
    }

    .vertical-div {
        display: none;
    }

    .task-card {
        background: #333;
        border-left: 5px solid;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        width: 100%;
        max-width: 330px !important;
        border: none;
    }

    .task-list {
        padding: 10px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .mark-done-button {
        font-size: 16px;
    }

    .mark-group-done-button {
        font-size: 16px;
    }

    .icon-button .fa-arrow-left {
        display: none;
        /* Hide the back arrow icon */
    }

    .add-button-dropdown {
        position: absolute;
        bottom: 62px;
        right: 82px;
        left: auto;
        background-color: #934646 !important;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        display: none;
        width: 250px;
    }

    .add-button-dropdown a {
        text-decoration: none;
        color: white;
        font-size: 20px;
        box-sizing: border-box;
        display: block;
    }

    .icon-button {
        background-color: transparent;
        padding: 5px;
        width: auto;
        font-size: 20px;
        display: flex;
        gap: 10px;
    }

    .filter {
        font-size: 16px;
        width: 200px;
        padding: 10px;
        border: 0.5px solid white;
        border-radius: 6px;
    }

    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 0 !important;
        z-index: 3000;
    }

    .table-box {
        background-color: #202020;
        border-radius: 6px;
        padding: 8px;
        width: auto;
        padding: 10px 15px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
        border: 0.5px solid white;
        max-height: 450px;

    }

    .sidebar.open {
        transform: translateX(0);
    }

    .section-box {
        width: 100%;
        max-width: 325px;
    }

    .employee-table {
        width: 100%;
        min-width: 300px;
        max-height: 320px;
        border-collapse: collapse;
        overflow-x: auto;
        display: block;
    }

    .new-employee-table-container {
        width: 100%;
        overflow-x: auto;
    }

    .new-employee-table {
        width: 100%;
        min-width: 300px;
        max-height: 320px;
        border-collapse: collapse;
        overflow-x: auto;
        display: block;
    }

    .new-employee-table thead tr th:nth-child(1),
    /* Index */
    .new-employee-table thead tr th:nth-child(5),
    /* Location */
    .new-employee-table thead tr th:nth-child(6),
    /* Action */
    .new-employee-table tbody tr td:nth-child(1),
    .new-employee-table tbody tr td:nth-child(5),
    .new-employee-table tbody tr td:nth-child(6) {
        display: none;
    }

    /* ✅ Keep Profile Picture, Name, and Role */
    .new-employee-table thead tr th:nth-child(2),
    /* Profile Picture */
    .new-employee-table thead tr th:nth-child(3),
    /* Name */
    .new-employee-table thead tr th:nth-child(4),
    /* Role */
    .new-employee-table tbody tr td:nth-child(2),
    .new-employee-table tbody tr td:nth-child(3),
    .new-employee-table tbody tr td:nth-child(4) {
        display: table-cell;
    }

    .new-employee-table td {
        border: none;
    }

    .new-employee-table th {
        border: none;
    }

    .hamburger-menu {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-right: 15px;
    }

    .navbar {
        justify-content: flex-start;
        gap: 10px;
        padding-left: 0;
        z-index: 9999;
    }

    .navbar-left {
        display: flex;
        align-items: center;
        gap: 0;
        flex-grow: 1;
        text-align: left;
    }

    .nav-title {
        font-size: 18px;
        font-weight: bold;
        flex-grow: 0;
        white-space: nowrap;
        font-display: swap;
    }

    .navbar .logo-container,
    .navbar .user-info,
    .navbar .notification-container {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
        padding-top: 70px;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .flex-desk-column-mobile {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        width: 100%;

    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        gap: 20px;
    }

    .profile-info-wrapper {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
    }

    .clickable-card {
        text-decoration: none; /* Remove underline */
        color: inherit; /* Keep normal text color */
        display: block; /* Make the entire card clickable */
    }

    .clickable-card:hover {
        background-color: rgba(0, 0, 0, 0.1); /* Optional hover effect */
        cursor: pointer;
    }


    .profile-metadata {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0;
        gap: 20px;
    }

    .metadata-item {
        text-align: center;
    }

    /* Hide vertical dividers on mobile */
    .desktop-only {
        display: none;
    }

    .left-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .profile-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        /* Two equal columns */
        gap: 10px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        /* Centers the grid within the parent */
        justify-content: center;
        /* Centers the grid horizontally */
        align-items: center;
        /* Aligns items vertically */
        text-align: center;
        /* Centers text inside */
        padding-left: 20px;
        padding-right: 20px;
    }

    .profile-container {
        margin-right: 0;
        margin-bottom: 10px;
        width: 150px;
        height: 150px;
    }

    .profile-text {
        justify-self: start;
        text-align: left;
    }

    .profile-info-wrapper {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }

    .profile-info-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .profile-picture {
        width: 150px !important;
        height: 150px !important;
    }


    /* Second row: Group + Location */
    .profile-grid p {
        margin: 0;
        text-align: center;
    }

    .label {
        font-size: 12px;
    }

    /* Hide vertical divs on mobile */
    .vertical-div {
        display: none;
    }

    ;

    .mini-menu {
        width: 100%;
        justify-content: space-around;
        gap: 0;
        border-bottom: 1px solid #333;
        padding-bottom: 5px;
        margin-bottom: 15px;
        overflow-x: auto;
    }

    .mini-menu a {
        flex: 1;
        min-width: 60px;
        text-align: center;
        margin-top: 20px;
    }

    .mini-menu button {
        width: 100%;
        font-size: 0;
        justify-content: center;
        padding: 12px 5px;
        margin: 0;
    }

    .mini-menu button i {
        font-size: 22px !important;
    }

    hr.divider {
        margin: 5px 0 15px 0;
        border-color: #333;
    }

    .employee-dropdown-menu {
        right: 0;
        left: 105px;
        top: 300px !important;
        background-color: #934646;
        font-size: 20px;
        width: 220px;
        padding: 0;
        box-sizing: border-box;
    }

    .employee-dropdown-menu a {
        font-size: 20px;
        width: 100%;
        display: block;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .employee-dropdown-menu a:hover {
        background-color: #a84f4f;
    }

    .icon-button,
    .floating-button,
    .add-button {
        touch-action: manipulation;
    }
    .container-section {
        flex-direction: column; /* Stack sections vertically */
        gap: 15px; /* Reduce spacing */
    }

    .profile-section {
        display: block; /* Ensure sections take full width */
        width: 100%;
    }

    .inner-profile-section {
        text-align: left; /* Align text to the left for better readability */
        padding: 15px; /* Reduce padding to fit smaller screens */
        font-size: 16px; /* Increase text size slightly for better readability */
    }

    .inner-profile-column {
        display: flex;
        flex-direction: column; /* Stack items in a single column */
        gap: 10px; /* Reduce gap between items */
    }

    .inner-profile-column p {
        text-align: left; /* Align text to the left */
        font-size: 16px; /* Slightly larger text */
    }

    .copy-btn {
        margin-left: 10px; /* Space out copy button */
        padding: 5px 8px;
    }

    .form-container {
        display: block;
    }

    .absence-list-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }

    .absence-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        background-color: #202020;
        border-radius: 6px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    }

    .absence-type {
        font-weight: 600;
        text-transform: capitalize;
    }

    .absence-details {
        text-align: right;
    }

    .absence-dates {
        font-size: 14px;
        color: #bdbdbd;
    }

    .absence-days {
        font-size: 16px;
        font-weight: 600;
    }
    .absence-list-mobile {
        max-height: 400px;  /* Same max height as desktop */
        overflow-y: auto;    /* Enable scrolling inside the container */
        padding-right: 10px; /* Prevent content from touching scrollbar */
    }
    .notes-table-container {
        overflow-x: hidden;
        max-height: 600px;
        border: 1px solid white;
        padding: 20px 2px;
        width: 100%;
    }

    .notes-table {
        width: 100%;
        border-spacing: 8px 8px; /* Reduce spacing for mobile */
        table-layout: auto; /* Allow the table to adapt */
    }

    /* Convert table to card-like layout on mobile */
    .notes-table thead {
        display: none; /* Hide headers on mobile */
    }

    .notes-table,
    .notes-table tbody,
    .notes-table tr.cycle-row {
        display: block;
        width: 100%;
    }

    .notes-table tr.cycle-row {
        border-radius: 6px;
        background-color: #202020;
        position: relative;
    }

    .notes-table tr.cycle-row td {
        display: block;
        text-align: left;
        width: 100% !important;
        box-sizing: border-box;
        padding: 10px;
        border-radius: 0;
    }

    /* Style the first cell (note title) */
    .notes-table tr.cycle-row td:first-child {
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        margin-bottom: 0;
    }

    /* Add labels for mobile cells */
    .notes-table tr.cycle-row td:nth-child(2)::before {
        content: "Created: ";
        font-weight: bold;
    }

    .notes-table tr.cycle-row td:nth-child(3)::before {
        content: "By: ";
        font-weight: bold;
    }

    /* Style the last cell */
    .notes-table tr.cycle-row td:last-child {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        width: 10%;
        margin-bottom: 15px;
    }

    /* Make the detail rows look better on mobile */
    #noteFormContainer {
        width: 100%;
        padding: 10px;
    }

    #noteFormContainer input,
    #noteFormContainer textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Style for expanded note details */
    .note-details {
        padding: 10px 5px;
    }

    .note-actions {
        flex-direction: column;
        gap: 5px;
    }

    .note-edit-trigger {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .note-edit-trigger button,
    .note-actions button {
        width: 100%;
        margin: 5px 0;
        font-size: 14px;
    }

    .employee-approval-table thead {
        display: none;
    }

    .employee-approval-table tr {
        margin-bottom: 1rem;
        display: block;
        border: 1px solid #ddd;
        padding: 0.5rem;
        border-radius: 4px;
        max-width: 350px;
        align-items: center;
    }

    .employee-approval-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem;
        text-align: right;
        border: none !important;
        align-items: center;
    }

    .employee-approval-table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
        text-align: left;
    }

    .form-control-table {
        width: 100%;
        max-width: 150px;
        background-color: #284880;
        font-size: 16px;
        text-align: center;
    }

    .filter-container {
        display: none; /* Filters are hidden by default */
        flex-direction: column;
        background: #f9f9f9;
        padding: 10px;
        border-radius: 8px;
        position: absolute; /* Keeps it above other elements */
        bottom: 35%; /* Adjust based on your layout */
        left: 50%;
        transform: translateX(-50%);
        width: 90%; /* Adjust width */
        max-width: 400px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensures it's on top */
    }

    .mobile-filter-toggle {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .calendar-flex {
        display: block;
        flex-direction: column;
    }

    .header-flex-mobile {
        margin-left: -10px;
        display: flex;
        align-items: center;
    }

    .modal {
        top: 100px;
    }


    .absence-table-wrapper {
        width: 100%;
        padding: 20px 2px;
    }

    #calendar {
        font-size: 14px;
        margin-top: 10px;
    }

    /* Calendar title (month name) */
    .fc-toolbar-title {
        font-size: 1.2em !important;
    }

    /* Calendar buttons */
    .fc-button {
        padding: 6px 8px !important;
        font-size: 0.8em !important;
    }

    /* Events in day cells */
    .fc-daygrid-event {
        padding: 3px 4px !important;
        margin: 1px 0 !important;
    }

    /* Modal styling for mobile */
    .mobile-modal {
        width: 100% !important;
        height: auto !important;
        flex-direction: column !important;
        padding: 10px !important;
    }

    .mobile-modal .left-content,
    .mobile-modal .right-content {
        width: 100% !important;
        padding: 5px 0 !important;
    }

    /* Improved form layout on mobile */
    .mobile-form-layout {
        display: flex;
        flex-direction: column;
    }

    .mobile-form-layout label {
        margin-top: 10px;
        margin-bottom: 3px;
    }

    .mobile-form-layout .event-form-control {
        height: 40px; /* Taller form fields for easier touch */
        margin-bottom: 8px;
    }

    /* Filter styling for mobile */
    .mobile-filters {
        flex-direction: column;
        margin-top: 10px;
        padding: 10px;
        background-color: #f5f5f5;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .mobile-filters .filter-label {
        margin: 5px 0;
        display: flex;
        align-items: center;
    }

    .mobile-filters .filter-checkbox {
        margin-right: 10px;
        width: 20px;
        height: 20px;
    }

    /* Floating action button enhancements */
    .mobile-floating-button {
        bottom: 20px;
        right: 20px;
    }

    .mobile-floating-button .add-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .mobile-floating-button .add-button-dropdown {
        bottom: 70px;
        right: 0;
        width: 200px;
    }

    /* Event details modal improvements */
    .floating-modal.hidden {
        display: none !important;
    }

    .floating-modal {
        position: fixed;
        z-index: 9999;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .floating-modal-content {
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }


    /* Calendar day cells styling */
    .fc-daygrid-day-number {
        font-size: 1em;
        padding: 8px !important;
    }

    /* List view enhancements */
    .fc-list-day-cushion {
        padding: 10px !important;
    }

    .fc-list-event-title {
        font-weight: 500;
    }

    /* Better scroll handling */
    .fc-scroller {
        -webkit-overflow-scrolling: touch;
    }

    /* Improved mobile event appearance */
    .mobile-event {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }

    /* Mobile buttons in toolbar */
    .calendar-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        display: none;
        align-items: flex-start;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 3000;
      }

      /* Modal content: scrollable column */
      .calendar-modal-content {
        background-color: #fff;
        border-radius: 6px;
        max-height: 90vh;
     /* Limit modal content height to 90% of viewport height */
        overflow-y: auto;  /* Enable vertical scrolling for content */
        width: 90%;
        max-width: 400px;  /* Set a max width */
        padding: 20px;
        box-sizing: border-box;
        top: 55%;
      }


      /* Make the wrapper and table fully responsive */
      .absence-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
      }


      .all-absence-label {
        padding: 5px 4px;
        font-size: 10px;
      }
      .name-part {
        display: block;
      }


}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }

    .absence-list-mobile {
        display: none;
    }
    .filter-container {
        display: flex !important;
        gap: 20px;
    }

    .mobile-filter-toggle {
        display: none; /* Hide toggle button on desktop */
    }

    .header-flex-mobile {
        display: flex;
        aign-items: center;
        gap: 20px;
    }

    .name-part {
        display: inline;
      }

      .task-card {
        background: #333333;
        border-left: 5px solid;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        width: 415px;

    }

}
