/* styles.css */

*{
    font-family: 'Poppins', sans-serif;
}

thead, th.dt-orderable-asc.dt-orderable-desc {
    background-color: #243E90 !important;
    color: white;
    align-content: center;
    text-align: center;
}
select#dt-length-1 {
    margin-left: 10px;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: white !important;
    background-image: url('img/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
}
body#admin-ctn, body#login-ctn{
    margin-top: 5em !important;
}

.dt-search {
    margin-bottom: 20px;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}
button#closeModal {
    opacity: 1;
}
button#cancelClockOutButton {
    background-color: red !important;
}

p#current-time{
    text-align: center;
    font-size: 1.25em;
}
#clock-out-btn{
    background-color: red !important;
}

#clock-in-btn,
#clock-out-btn {
    width: 100%;
    padding: 25px;
    font-size: 22px;
}

div#clock-in-section {
    width: 35vw;
}

#admin-dashboard {
    margin-top: 30px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.list-group-item {
    font-size: 18px;
}

/* Make sure the disabled button appears visually disabled */
button[disabled] {
    opacity: 0.5;
    pointer-events: none; /* Prevents clicks */
}

button:disabled {
    pointer-events: none; /* Prevent clicks */
    opacity: 0.5; /* Make it look visually disabled */
}

.time-ctn {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    font-weight: 700;
}

.container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(36, 62, 144, 0.2);
}
.form-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #243E90;
}
.form-label {
    color: #243E90;
}

.img-ctn{
    display: flex;
    justify-content: center;
}
.container.time-ctn {
    position: relative; /* Enable pseudo-element positioning */
    margin-top: 5rem;
    max-width: 1000px !important;
    border-radius: 10px;
    overflow: hidden; /* Ensure pseudo-element stays within bounds */
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba( 0, 0, 0, 0.05 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( -9px );
    --webkit-backdrop-filter: blur( 11px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
}

.container.time-ctn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255 255 255 / 40%); /* Semi-transparent background */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(35px); /* Apply blur to the pseudo-element */
    -webkit-backdrop-filter: blur(35px);
    z-index: 0; /* Keep this behind content */
}

p#current-time {
    text-shadow: 1px 1px #ffffff;
}

.content {
    position: relative; /* Ensure content stays above the pseudo-element */
    z-index: 1; /* Content layer */
    padding: 1rem; /* Add padding to avoid touching edges */
    color: black; /* Ensure readable text color */
}

img.logo-img {
    width: 150px;
}

hr{
    width: 100%;
}

#logout-btn{
    background-color: red !important;
    color: white !important;
    border: 0 !important;
}
.btn, a.btn.btn-info.btn-full.mt-2, #saveManagerCodeBtn, button#addManagerCodeBtn, .dt-btn{
    background-color: #243E90 !important;
    color: #fff !important;
    border: none;
}
input#managerCodeInput {
    margin-bottom: 20px;
}
.btn:hover {
    background-color: #1a2f6b;
    color: white;
}
#signup-form {
    display: none;
}
.toggle-form-btn {
    background-color: #FFCD05;
    color: #243E90;
    margin-top: 1rem;
}
@media (max-width: 576px) {
    .container {
        padding: 1.5rem;
    }
    h1, h3 {
        font-size: 1.5rem;
    }
}
@media (max-width: 1024px){
    .mt-4.news-ctn {
        width: 100% !important;
        padding: 20px;
    }
    .container-body {
        flex-direction: column !important;
    }
    .container.time-ctn, .container.mt-4.attendance-ctn{
        width: 95% !important;
    }
    #clock-in-btn,
    #clock-out-btn {
        font-size: 17px !important;
    }
    p#current-time{
        font-size: 1em !important;
    }
    div#clock-in-section {
        width: 75vw !important;
    }
}

.mt-4.news-ctn {
    width: 70%;
}
.container-body {
    display: flex;
    justify-content: center;
    flex-direction: row;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
}
#addManagerCodeModal, div#addHolidayModal{
    z-index: 99999;
}
.close-btn, span.close-btn-mngr, .close-btn-clkout {
    color: red;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.holiday-contents {
    margin: 20px 0px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

button {
    margin-top: 10px;
}
.active>.page-link, .page-link.active{
    background-color: #243E90 !important;
    color: white !important;
}
#saveTasksBtn {
    background-color: #243E90;
    color: white;
    border: unset;
    border-radius: 20px;
    padding: 7px;
}

.ad-ctn {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}
img.ad-img {
    border-radius: 10px;
}

.prc-img{
    height: 3.5em;
    max-width: 100% !important;
}
.hidden-sidebar{
    transform: translateX(-250px);
}
.hidden-sidebar-adminContent{
    margin-left: 0px !important;
}

/* Custom styles for the sidebar */
.sidebar {
    height: 100%; /* Full height */
    background-color: #f9f9f9; /* Light background color */
    position: fixed; /* Fixed position */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 250px; /* Sidebar width */
    transition: transform 0.3s ease; /* Smooth transition */
    z-index: 9999; /* Keep it on top */
    transform: translateX(-100%); /* Initially hidden */
}

.prc-img{
    height: 3.5em;
    max-width: 100% !important;
}
.hidden-sidebar{
    transform: translateX(-250px);
}
.hidden-sidebar-adminContent{
    margin-left: 0px !important;
}

/* Custom styles for the sidebar */
.sidebar {
    height: 100%; /* Full height */
    background-color: #f9f9f9; /* Light background color */
    position: fixed; /* Fixed position */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 250px; /* Sidebar width */
    transition: transform 0.3s ease; /* Smooth transition */
    z-index: 9999; /* Keep it on top */
    transform: translateX(-100%); /* Initially hidden */
}

button#show-signup-btn, button#show-login-btn {
    background-color: unset !important;
    color: black !important;
}

.sidebar.open {
    transform: translateX(0); /* Show the sidebar */
}

/* Full-width buttons without borders */
.btn-full {
    width: 100%; /* Full width */
    border: none; /* No borders */
}

/* Close button */
.close-btn {
    font-size: 30px; /* Size of close icon */
    cursor: pointer; /* Pointer on hover */
    position: absolute; /* Position absolute */
    top: 15px; /* Align to the top */
    right: 15px; /* Align to the right */
    z-index: 1000; /* Keep it above the sidebar */
}

/* Hamburger button styles */
.hamburger {
    font-size: 30px; /* Icon size */
    cursor: pointer; /* Pointer on hover */
    position: fixed; /* Fixed position */
    top: 15px; /* Align to the top */
    left: 15px; /* Align to the left */
    z-index: 1000; /* Keep it above the sidebar */
    background-color: #ffffff;
    color: #000000;
    padding: 5px 15px;
    border-radius: 10px;
}
.hamburger-hide{
    display: none;
}
.adminContent{
    margin: 50px;
}

.attendance-ctn{
    max-width: 1000px !important;
}

td {
    align-content: center;
    text-align: center;
}

.view-link{
    font-weight: 600;
    text-decoration: none;
    font-style: italic;
    color: #091aff;
}