/* ==========================
   Global Styles
   ========================== */
   body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding: 1rem;
    margin: 0;
    line-height: 1.6;
    background-image: url('/xv239.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.container {
    margin: 0 auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

@media (min-width: 1024px) {
  .container {
    width: 80% !important; /* !important overrides the inline style */
  }
}

@media (max-width: 1024px) {
  .container {
    width: 92% !important; /* !important overrides the inline style */
  }
  body {
    padding: 0 !important; 
}
}
@media (max-width: 1024px) {
  .container {
    /* width: 100% !important; */
    padding: 1rem !important; /* maintain consistent inner space */
    box-sizing: border-box;
  }
}


/* ==========================
   Typography
   ========================== */
p {
    font-size: 0.9rem;
}

h1, h2, h3 {
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.title {
    text-align: center;
}

/* ==========================
   Form Styling
   ========================== */
form {
    margin-bottom: 1rem;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus {
    outline: 2px solid #115daf;
    border-color: #115daf;
}

.password-container {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.logintogglepw {
  margin-top:-0.8em !important;
}
/* ==========================
   Buttons
   ========================== */
button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #115daf;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00607A;
}

button:focus-visible {
    outline: 3px solid #61DBFB;
}

button#prev-month,
button#next-month {
    min-width: 8rem;
}

/* ==========================
   Links
   ========================== */
a {
    color: #0078A0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #005F7F;
    text-decoration: underline;
}

/* ==========================
   Messages & Alerts
   ========================== */
.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.success {
    color: #3c763d;
    background-color: #dff0d8;
    border-left: 5px solid #3c763d;
}

.error {
    color: #a94442;
    background-color: #f2dede;
    border-left: 5px solid #a94442;
    margin-bottom:1em;
    padding-left:1em;
}

/* ==========================
   Calendar Styling
   ========================== */





   button#today-btn {
    width: 100%;
    height: 3px;
    border-radius: 5px 5px 0 0;
    position: relative;
    background-color: #115daf; /* Initial color */
    transition: background-color 0.2s ease-in-out;
}

/* Move only the text (inside the span) up by 3px */
button#today-btn span {
  display: inline-block;
  transform: translateY(-13px);
  z-index: 10;
  position: relative;
}


button#today-btn::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 15px;
  background-color: #115daf;
  top: -10%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out;
}

/* Hover state: both change color simultaneously */
button#today-btn:hover,
button#today-btn:hover::after {
  background-color: #115daf /* Change this to your desired color */
}



#calendar-container {
    margin-top: 20px;
}

/* #calendar-header {
    text-align: center;
    margin-bottom: 2em;
}

#calendar-header button {
    margin: 0 10px;
} */













/* Update styling for previous and next month buttons on mobile devices */
#calendar-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

#calendar-header button {
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  min-width: auto;
  flex: 1;
  max-width: 100px;
}

span#month-year {
  flex: 2;
  text-align: center;
  font-size: 1.1rem;
  padding: 0 0.5em;
}

/* Responsive adjustments specifically for mobile devices */
@media (max-width: 600px) {
  #calendar-header {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
  }

  #calendar-header button {
    flex: 1;
    max-width: none;
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  span#month-year {
    flex: 1;
    font-size: 0.9rem;
    margin-bottom: 0;
    padding: 0 0.25rem;
  }
}



























#calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: -0.9em;
}

#calendar-table th,
#calendar-table td {
    border: 1px solid #ccc;
    width: 14.28%;
    height: 80px;
    vertical-align: top;
    padding: 4px;
    box-sizing: border-box;
    position: relative;
    background: #ffdfdf;
}

#calendar-table th {
    background-color: #eaeaea;
}

/* Highlight today's cell */
#calendar-table td.today {
    /* font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, rgba(0, 26, 51, 1), rgba(0, 51, 102, 1));
    color: white; */
    border: 2px solid #115daf;
}

th {
    line-height: 70px;
}

td {
    text-align: left !important;
}

td.weekend {
  background-color: #eff3ff;
}

@media (max-width:1024px) {
  button#today-btn::after {
    width: 30%;
  }
}

@media (max-width:768px) {
  button#today-btn::after {
    width: 40%;
  }
}


@media (max-width:414px) {
  button#today-btn::after {
    width: 60%;
  }
}


















/* ==========================
   Shift Entry Styling
   ========================== */
.shift-info {
    background-color: #dff0d8;
    color: #333;
    font-size: 0.9rem;
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 4px;
    display: block;
}

.shift-info button {
    font-size: 0.8rem;
    margin-left: 10px;
    padding: 2px 4px;
}

/* ==========================
   Logout Button
   ========================== */
.logout {
    position: absolute;
    top: 20px;
    right: 20px;
}

.logout a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #115daf;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.logout a:hover {
    background-color: #0056b3;
}

/* ==========================
   Utility Classes
   ========================== */
.hidden {
    display: none;
}

span#month-year {
    font-weight: bold;
    font-size: 1.3rem;
}

/* ==========================
 General message container 
========================== */
#message-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem;
  border-radius: 5px;
  font-size: 1rem;
  min-width: 250px;
  max-width: 90%;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Show message */
#message-container.show {
  opacity: 1;
}

/* Success message */
.message.success {
  background-color: #dff0d8;
  color: #3c763d;
  border-left: 5px solid #3c763d;
}

/* Error message */
.message.error {
  background-color: #f2dede;
  color: #a94442;
  border-left: 5px solid #a94442;
}

/* Warning message */
.message.warning {
  background-color: #fcf8e3;
  color: #8a6d3b;
  border-left: 5px solid #8a6d3b;
}



/* remove button on calendar */

.remove-btn {
    background-color: red;
    border: 1px solid red;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 0;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    font-size: 16px;
    float: right;
  }
  .remove-btn:hover {
    background-color: rgb(189, 56, 56);
    border: 1px solid rgb(189, 56, 56);
  }


      /* Custom confirmation overlay */
      #confirmation-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }
      #confirmation-overlay .dialog {
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
        text-align: center;
      }
      #confirmation-overlay button {
        margin: 10px;
      }
      /* Login error styling */
      #login-error {
        color: red;
        margin-top: 10px;
      }
      /* Hide elements with .hidden class */
      .hidden {
        display: none;
      }

      
    /* Custom confirmation overlay */
    #confirmation-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }
      #confirmation-overlay .dialog {
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.25);
        text-align: center;
        max-width: 90%;
      }
      #confirmation-overlay button {
        margin: 10px;
      }
      /* Login error styling */
      #login-error {
        color: #d22424;
        margin-top: -5.2em;
        float: left;
        font-weight: 700;
        background: #e18585;
        width: 98.5%;
        padding: 0 0 0 0.5em;
        border-left: 4px solid #d22424;
      }
      /* Hide elements with .hidden class */
      .hidden {
        display: none;
      }
      /* Calendar container for horizontal scrolling */
      #calendar-container {
        overflow-x: auto;
      }
      table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
      }
      th, td {
        border: 1px solid #ccc;
        text-align: center;
        padding: 8px;
        min-width: 80px;  /* Ensure a minimum width for each column */
      }
      /* Month navigation buttons */
      #prev-month, #next-month {
        font-size: 1.2em;
        padding: 10px;
        margin: 5px;
        cursor: pointer;
      }

      /* Responsive adjustments */
      @media (max-width: 1024px) {
      button.remove-btn {
      /* margin-top: -0em; */
      margin-right: -1.5em;
  }
  #calwrap {
    background:#e3edf1;
    border-radius:0.2em;
  }
      }
  
      @media (max-width: 768px) {
      button.remove-btn {
        margin-top: -1.1em;
        margin-right: -1.5em;
  }
      }
  
  
      @media (max-width: 600px) {
        th, td {
          padding: 5px;
          font-size: 14px;
        }
        #prev-month, #next-month {
          font-size: 1em;
          padding: 8px;
        }
        .dialog {
          font-size: 14px;
          padding: 15px;
        }
        #calendar-header {
      text-align: left;
      /* margin-bottom: 10px; */
  }
  #calendar-header button {
      margin: 5px 10px;
  }
  #calendar-table {
      width: 100%;
      border-collapse: collapse;
      /* margin: 0.7em; */
  }
      }
      @media (max-width: 413px) {

        #calendar-header button {
            margin: 5px 10px;
        }

      }
      @media (max-width: 398px) {

        #calendar-header button {
            margin: 5px 10px;
            float: left;
        }

      }





      @media (max-width: 360px) {

      span#month-year {
        font-weight: bold;
        font-size: 1rem;
    }
      }

      .mainstart {
        margin-top:1em;
      }

      div#logo {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background: linear-gradient(to bottom, rgba(0, 26, 51, 1), rgba(0, 51, 102, 1));
        margin: -1.5em;
        padding: 1em;
        border-radius: 5px 5px 0 0;
    }

    div#login-section {
        margin-top: 2em;
    }

    input#login-password {
      margin-bottom: 2em;
  }

/* 
    toast for registration */
    div#toast {
      margin: 6em;
      text-align: center;
      padding: 1em;
      margin-bottom: 4em;
      color: white;
      border-left: 4px solid #3abcf5;
      border-radius: 0.5em;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      background: linear-gradient(to bottom, rgba(0, 26, 51, 1), rgba(0, 51, 102, 1));
  }

  div#registration-section {
    margin-top: 2em;
}

.registration-section-again {
  margin-top:1.32em;
}

img.thmbsupsimg {
  position: relative;
  text-align: center;
  margin: 10em auto -10em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 20%;
  border-radius: 0.5em;
}

img.resetimg {
  position: relative;
  text-align: center;
  margin: 6em auto -5em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 20%;
  border-radius: 0.5em;
}


@media (max-width: 600px) {
img.resetimg {
  position: relative;
  text-align: center;
  margin: 6em auto -5em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  border-radius: 0.5em;
}
}


.ahaa {
  float: right;
  margin-top: -3.1em;
}

.regbut {
  margin-top: -3.5em;
  margin-left: 0;
}

a#back-to-login {
  float: right;
  margin-top: -3.5em;
}










p { font-size: 0.9rem; }
h1, h2, h3 { margin-bottom: 0.75rem; font-weight: bold; }
.title { text-align: center; }
form { margin-bottom: 1rem; }
label { font-weight: bold; display: block; margin-bottom: 0.25rem; }
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}
input:focus {
  outline: 2px solid #115daf;
  border-color: #115daf;
}
button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: #115daf;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover { background-color: #1f7bdd;}

/* a {     color: white;
text-decoration: none;
transition: color 0.3sease;
background: #115daf;
padding: 0.5em;
border-radius: 0.3em; } */

a:hover, a:focus { color: #005F7F; text-decoration: underline; background: transparent; }
.hidden { display: none; }


a#show-registration {
height: 1.5em;
display: inline-block;
}

a#show-reset {
    float: right;
    margin-top: -3em;
}



.btlib {
  margin-top: -3em;
  margin-left: 7em;
}

@media (max-width: 768px) {
  a#show-registration {
height: 1.5em;
display: inline-block;
  }
  .btlib {
margin-top: -3.5em;
margin-left: 7em;
float: right;
}
a#show-reset {
display: inline-block;
    margin: 0.5em auto;
    text-align: center;
    float: none;
    width: 95%;
}













}


@media (max-width: 500px) {
  .btlib {
    margin-top: 0;
    margin-left: 0;
    float: left;
    width:100%;
}
.loginbut {
width:100%
}
}

/* 
@media (min-width: 495px) and (max-width: 500px) {
  .btlib {
    margin-top: -3.5em;
    margin-left: 7em;
    float: right;
}
} */
@media (min-width: 768px) {
a#show-reset {
width: 10em;
text-align: center;
}
}

@media (min-width: 501px) and (max-width:768px) {
a#show-reset {
    width: 35%;
}
}

@media (max-width: 500px) {
.btlib a#show-registration {
    display: block;
    margin-top: 0.5em;
    width: 95%;
    text-align: center;
}

}






/* Calendar Styling */
#calendar-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
th, td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 8px;
  min-width: 80px;
}
#prev-month, #next-month {
  font-size: 1.2em;
  padding: 10px;
  margin: 5px;
  cursor: pointer;
}
.remove-btn {
  background-color: red;
  border: 1px solid red;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 0;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  font-size: 16px;
}
.remove-btn:hover { background-color: rgb(189, 56, 56); }
/* Logout Button */
.logout {
  position: absolute;
  top: 20px;
  right: 20px;
}
.logout a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #115daf;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.logout a:hover { background-color: #0056b3; }
/* Responsive adjustments */
@media (max-width: 600px) {
  th, td { padding: 5px; font-size: 14px; }
  #prev-month, #next-month { font-size: 1em; padding: 8px; }
  .dialog { font-size: 14px; padding: 15px; }
}

/* Password Strength Meter (added) */
.strength-meter {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}
.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease-in-out;
}
.strength-text {
  margin-top: 5px;
  font-weight: bold;
}