@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  /*display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;*/
  display: block;
  padding-top: 80px;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(115deg, #56d8e4 10%, #9f01ea 90%);
}
/* General container styling */
.container {
    max-width: 90%; /* Set to 90% of the screen width */
    margin: 0 auto;
    padding: 20px;
    padding-top: 5%; /* Adjusted padding based on percentage */
    padding-bottom: 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.container .text{
  text-align: center;
  font-size: 2.5vw; /* Set font-size based on viewport width */
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container form{
  padding: 3% 0 0 0; /* Padding set in percentage */
}
.container form .form-row{
  display: flex;
  margin: 5% 0; /* Margin set in percentage */
}

/* Full width container styling */
.container-full {
    max-width: 100%; /* Set to 100% of the screen width */
    margin: 0 auto;
    padding: 20px;
    padding-top: 5%; /* Adjusted padding based on percentage */
    padding-bottom: 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.container-full .text{
    text-align: center;
    font-size: 2.5vw; /* Set font-size based on viewport width */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.container-full form{
    padding: 3% 0 0 0; /* Padding set in percentage */
}
.container-full form .form-row{
    display: flex;
    margin: 5% 0; /* Margin set in percentage */
}

/* Medium container styling */
.container-med {
    max-width: 60%; /* Set to 60% of the screen width */
    margin: 0 auto;
    padding: 20px;
    padding-top: 5%; /* Adjusted padding based on percentage */
    padding-bottom: 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.container-med .text{
  text-align: center;
  font-size: 2.5vw; /* Set font-size based on viewport width */
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container-med form{
  padding: 3% 0 0 0; /* Padding set in percentage */
}
.container-med form .form-row{
  display: flex;
  margin: 5% 0; /* Margin set in percentage */
}


/* Slim container styling */
.container-slim {
    max-width: 40%; /* Set to 40% of the screen width */
    margin: 0 auto;
    padding: 20px;
    padding-top: 5%; /* Adjusted padding based on percentage */
    padding-bottom: 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.container-slim .text{
  text-align: center;
  font-size: 2.5vw; /* Set font-size based on viewport width */
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.container-slim form{
  padding: 3% 0 0 0; /* Padding set in percentage */
}
.container-slim form .form-row{
  display: flex;
  margin: 5% 0; /* Margin set in percentage */
}

/* General container styling */
.container-short {
    max-width: 90%; /* Set to 90% of the screen width */
    margin: 0 auto;
    padding: 20px;
    padding-top: 5%; /* Adjusted padding based on percentage */
    padding-bottom: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.container-short .text{
    text-align: center;
    font-size: 2.5vw; /* Set font-size based on viewport width */
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.container-short form{
    padding: 3% 0 0 0; /* Padding set in percentage */
}
.container-short form .form-row{
    display: flex;
    margin: 5% 0; /* Margin set in percentage */
}

/* Button Bar */
.bar{
    display:flex;
    gap:8px;
    align-items:center;
    margin:8px 0 12px 0;
}



/* Table styling */
.live-calls {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.live-calls th, .live-calls td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd; /* Add borders to the table */
}

.live-calls th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}



.live-calls tr:hover {
    /*background-color: #f1f1f1; /* Row hover effect */
    /*background-color: inherit !important;*/
    font-weight: bold;
}

/* Status bar styling */
.status-bar {
    display: block;
    height: 30px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
}

/* Action icons styling */
.material-icons {
    font-size: 20px; /* Adjust icon size */
    color: #3498db;
    vertical-align: middle;
    margin-right: 8px;
    cursor: pointer;
}

.material-icons:hover {
    color: #1d6fa5; /* Change color on hover */
}

.material-icons.white { color: #FFFFFF}




form .form-row .input-data{
  width: 100%;
  height: 40px;
  margin: 0 20px;
  position: relative;
}
form .form-row .textarea{
  height: 70px;
}
/* General form styling */
.input-data input,
.textarea textarea {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  font-size: 17px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.input-data input:focus ~ label,
.textarea textarea:focus ~ label,
.input-data input:valid ~ label,
.textarea textarea:valid ~ label {
  transform: translateY(-20px);
  font-size: 14px;
  color: #3498db;
}

.input-data input:read-only ~ label,
.input-data input[readonly] ~ label {
  transform: translateY(-20px);
  font-size: 14px;
  color: #3498db;
}

.textarea textarea {
  resize: none;
  padding-top: 10px;
}

.input-data label {
  position: absolute;
  pointer-events: none;
  bottom: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.textarea label {
  width: 100%;
  bottom: 40px;
  background: #fff;
}

.input-data .underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 100%;
}

.input-data .underline:before {
  position: absolute;
  content: "";
  height: 2px;
  width: 100%;
  background: #3498db;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.input-data input:focus ~ .underline:before,
.input-data input:valid ~ .underline:before,
.textarea textarea:focus ~ .underline:before,
.textarea textarea:valid ~ .underline:before {
  transform: scale(1);
}

.input-data input:read-only ~ .underline:before,
.input-data input[readonly] ~ .underline:before {
  transform: scale(1);
}

.submit-btn .input-data{
  overflow: hidden;
  height: 45px!important;
  width: 25%!important;
}
.submit-btn .input-data .inner{
  height: 100%;
  width: 300%;
  position: absolute;
  left: -100%;
  background: -webkit-linear-gradient(right, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
  transition: all 0.4s;
}
.submit-btn .input-data:hover .inner{
  left: 0;
}
.submit-btn .input-data input{
  background: none;
  border: none;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}


/* Live calls status pill.
   Was height:30px with line-height:30px, so any status that wrapped to a
   second line rendered that line OUTSIDE the pill - white text on the row
   background, effectively invisible. "Returning Patient" did this every
   time. Flex centring with a min-height lets the pill grow instead. */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 8px;
    box-sizing: border-box;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* ------------------------------------------------------------------
   Colour carries the journey stage, so the column can be read at a
   glance without reading the words. Animation is deliberately NOT used
   here: when most pills pulse, pulsing stops meaning anything.
   ------------------------------------------------------------------ */

/* Needs action - not yet started */
.status-todo            { background: #fd7e14; }

/* Moving */
.status-enroute,
.status-to-appointment,
.status-enroute-dest    { background: #007bff; }

/* On scene, stationary */
.status-at-pickup,
.status-at-appointment,
.status-at-event,
.status-at-patient      { background: #6f42c1; }

/* Returning leg */
.status-returning       { background: #17a2b8; }

/* Finished */
.status-complete,
.status-clear,
.status-event-complete,
.status-shift-complete  { background: #28a745; }

.status-cancelled       { background: #dc3545; }

/* Shift lifecycle - not a call state at all */
.status-on-shift,
.status-break           { background: #6c757d; }

/* No rule for this status - deliberately dull so it stands out as
   unmapped rather than masquerading as a real state. */
.status-default         { background: #495057; }

/* Animations */
@keyframes enroute-animation {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes appointment-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.mother-call {
  background-color: #95D2B3;
}

.discharge-call {
  background-color: #B0EBB4;
}

.set-call {
  background-color: #BFF6C3;
}

.other-call {
  background-color: #E0FBE2;
}

.contract-luh {
    background-color: #FFF8E3; /* Gold */
}

.contract-puh {
    background-color: #E1AFD1; /* Pastel Maroon */
}

.contract-ruh {
    background-color: #ADC4CE; /* Light Blue */
}

.contract-nas {
    background-color: #F1F0E8; /* Beige */
}

.contract-ulhg {
    background-color: #E0FBE2; /* Powder Green */
}

.contract-sbhk {
    background-color: #FAF3F0; /* Beige Pink */
}

.contract-na {
    background-color: #000000; /*  */
}

.contract-other {
    background-color: #E6E6FA; /* Lavender */
}

.contract-ulhg-shift {
    background-color: #B0EBB4; /* Darker Powder Green */
}

.checkbox-group {
  margin: 20px 0;
}

.checkbox-group .checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-group .checkbox-item label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-left: 10px;
}

.checkbox-group .checkbox-item input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.navbar {
    background: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fix the navbar at the top */
    top: 0;
    width: 100%; /* Ensure the navbar spans the full width */
    z-index: 1000;
}

.navbar .logo img {
    height: 50px;
    width: auto;
}

.navbar .links {
    display: flex;
    align-items: center;
}

.navbar .links a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navbar .links a i {
    margin-right: 5px;
}

.navbar .links a:hover {
    color: #3498db;
}

.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 80px; /* Adjust this to account for the navbar height */
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal-width columns */
    gap: 20px;
    margin-top: 40px;
}

.dashboard-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-item:hover {
    transform: translateY(-5px);
}

.dashboard-item i {
    font-size: 48px;
    color: #3498db;
}

.dashboard-item p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.dashboard-item a {
    text-decoration: none;
    color: inherit;
}
/* Tablet: 2 columns, smaller icons/text */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
  }
  .dashboard-item {
    padding: 15px;
  }
  .dashboard-item i {
    font-size: 36px;
  }
  .dashboard-item p {
    font-size: 14px;
  }
}

/* Phone: 1 column, even smaller icons/text */
@media (max-width: 480px) {
  .dashboard-container {
    padding-top: 60px; /* reduce top padding a bit on small screens */
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .dashboard-item {
    padding: 10px;
  }
  .dashboard-item i {
    font-size: 28px;
  }
  .dashboard-item p {
    font-size: 12px;
    margin-top: 5px;
  }
}



.user-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.user-table thead tr {
    background-color: #3498db;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
    text-align: left;
    white-space: nowrap; /* Ensure content doesn't wrap */
}

.user-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.user-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.user-table tbody tr:last-of-type {
    border-bottom: 2px solid #3498db;
}

.user-table tbody tr:hover {
    background-color: #f1f1f1;
}

.user-table th,
.user-table td {
    text-align: left;
}

.user-table td:last-child {
    text-align: right; /* Align the actions to the right */
}

.user-table a {
    color: #3498db;
    text-decoration: none;
}

.user-table a:hover {
    text-decoration: underline;
}



@media (max-width: 700px) {
  .container .text{
    font-size: 30px;
  }
  .container form{
    padding: 10px 0 0 0;
  }
  .container form .form-row{
    display: block;
  }
  form .form-row .input-data{
    margin: 35px 0!important;
  }
  .submit-btn .input-data{
    width: 40%!important;
  }
}


.site-footer {
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: #f8f9fa; /* Optional: You can change this color to your preference */
    font-size: 14px;
    color: #666; /* Optional: Text color */
    z-index: 100; /* Ensure it stays above other elements */
}

footer p {
    margin: 0;
}
/* ── Mobile container overrides ──────────────────────────────
   Prevents containers from being tiny slivers on small screens.
   These override the fixed % widths in form_style.css.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .container,
    .container-full,
    .container-med,
    .container-slim,
    .container-short {
        max-width: 96% !important;
        width: 96% !important;
        padding: 16px !important;
        padding-top: 24px !important;
        padding-bottom: 20px !important;
    }
    /* Ensure .bar at top of page clears the fixed navbar on mobile */
    .bar:first-child {
        margin-top: 8px !important;
    }
}
