/* Center the login box on the page */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(
        90% 90% at 50% 0%,   
        #052D44 0%,          
        #041D31 35%,         
        #021021 70%,         
        #010A19 100%         
    );
    background-attachment: fixed; 
    color: #f4f4f9;            
    min-height: 100vh;
}

.cursor-pointer {
  cursor: pointer;
}

.z-top {
  z-index: 2000 !important;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.cell-danger {
  background-color: #dc3545 !important;
  color: white;
}

.vertical-divider {
  width: 2px;
  align-self: stretch;
}

.field-error {
  color: #dc3545;
}

.nonfield-error {
  color: #dc3545;
}

.panel {
  background-color: #2d3748;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.panel button.disabled {
  background-color: #718096;
}

.rounded-5 {
  border-radius: 1.75rem;
}

.card-link {
  transition: all 0.3s ease;
  border-radius: 1rem;
}

.card-link:hover {
  background-color: #f8f9fa !important; /* Light background */
  color: #fff !important;
}

.card-link:hover i,
.card-link:hover h5,
.card-link:hover p {
  color: #fff !important;
}

.notification-badge {
  transform: translate(-95%, -90%); 
}

/* Pagination controller */
.pagination-gradient .page-link {
  border: none;
  padding: 12px 18px;
  margin: 0 5px;
  border-radius: 50%;
  color: #f4f4f9;
  background: #1a202c49;
  transition: all 0.3s ease;
}

.pagination-gradient .page-item.active .page-link {
  background: linear-gradient(45deg, #6b5ce7, #a178df);
  color: white;
  box-shadow: 0 2px 10px rgba(107, 92, 231, 0.4);
}

.pagination-gradient .page-link:hover {
  background: linear-gradient(45deg, #a178df, #6b5ce7);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(107, 92, 231, 0.4);
}

/* CUSTOM BUTTONS */
.btn-outline-indigo {
  color: #6610f2;
  border: 1px solid #6610f2;
  background-color: transparent;
}

.bg-indigo,
.btn-outline-indigo:hover {
  background-color: #6610f2;
  color: #fff;
}

.bg-purple,
.btn-outline-purple:hover {
  background-color: #9b59b6;
  color: #fff;
}

.bg-red,
.btn-outline-red:hover {
  background-color: #ff3b3b;
  color: black;
}

.bg-red-light,
.btn-outline-red-light:hover {
  background-color: #eeb8bd;
  color: black;
}

.btn-outline-cyan {
  color: #0dcaf0;
  border: 1px solid #0dcaf0;
  background-color: transparent;
}

.bg-cyan,
.btn-outline-cyan:hover {
  background-color: #0dcaf0;
  color: #fff;
}

.btn-outline-orange {
  color: #d35400;
  border-color: #d35400;
}

.bg-orange,
.btn-outline-orange:hover {
  background-color: #d35400;
  color: #fff;
}

/* CUSTOM TABLE COLOURS */
.table-purple {
  background-color: #e8cdec !important;
  color: black;
}

.table-red {
  background-color: #d45e5e !important;
  color: black;
}

.table-orange {
  background-color: #fff3e0 !important;
  color: black;
}

.table-teal {
  background-color: #e0f2f1 !important;
  color: black;
}

.table-pink {
  background-color: #f3ceda !important;
  color: black;
}

.table-indigo {
  background-color: #e8eaf6 !important;
  color: black;
}

.table-lime {
  background-color: #f9fbe7 !important;
  color: black;
}

/* CUSTOM COLOURS */
.text-indigo {
  color: #6610f2;
}

.text-pink {
  color: #db33f5;
}

.text-cyan {
  color: #0dcaf0;
}

.text-orange {
  color: #d35400;
}

/* Notification badge for account icon in navbar */
.badge.fs-7 {
  padding: 0.45em;
  min-width: 1.6em;
  height: 1.6em;
  line-height: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

/*Below code adds fade to navbar along with styling for the buttons on it and icons*/
.che-header{
  background: radial-gradient(
      120% 180% at 50% 0%,
      #011a2d 0%,
      #001227 100%
  );
}
.che-header .nav-link,
.che-header .navbar-brand span,
.che-header .fa-circle-user,
.che-header .btn-light,
.che-header .btn-light .fa-circle-user{
  color: #29b9e4 !important;
}



.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Login title */
.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Login buttons */
.login-box button {
    width: 200px;
    padding: 12px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    background-color: #4CAF50;
    transition: background-color 0.3s ease;
}

.login-box button:hover {
    background-color: #45a049;
}

.login-box button:focus {
    outline: none;
}

/* Manager Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: transparent; /* Remove the black background */
}

.dashboard-container h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 40px;
}

/* Buttons for manager dashboard */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
}

.button-container button {
    width: 400px;
    padding: 20px;
    font-size: 1.8rem;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.button-container button:hover {
    background-color: #45a049;
}

.button-container button:focus {
    outline: none;
}

/* Left panel styling */
.left-panel {
    text-align: center; 
    width: 100%; 
    padding: 20px;
}

.left-panel h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f4f4f9;
}

.left-panel p {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Dropdown Styling */
.left-panel label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
    color: #f4f4f9;
}

.left-panel select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #2d3748;
    color: white;
    appearance: none;
    cursor: pointer;
}

.left-panel select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Right panel styling */
.right-panel {
    text-align: center;
    max-width: 600px; 
    width: 100%; 
    background-color: #2d3748; /* Card-like background */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Deliveries section */
.deliveries {
    display: flex;
    align-items: center;
    justify-content: center;  
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-top: 20px;
    font-size: 16px;
    color: #f4f4f9;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.deliveries button {
    width: 50px;
    height: 50px;
    font-size: 16px;
    margin: 0 10px;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.deliveries button:hover {
    background-color: #718096;
}

.deliveries button:disabled {
    background-color: #2d3748;
    cursor: not-allowed;
}

.deliveries span {
    font-size: 1.8rem;
    margin: 0 10px;
    display: inline-block;
}

/* Styling for the login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form group styling */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.form-group label {
    font-size: 1.2rem;
    color: #333;
}

.form-group input {
    width: 90%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f4f4f9;
    color: #333;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Styling for messages */
.message {
    margin-top: 20px;
    font-size: 1rem;
    color: #e53e3e;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #2d3748 !important;
    color: #f4f4f9 !important;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 65%;
}

.scrollable-list {
  max-height: 350px;
  overflow-y: auto;
}

/* Base styles */
.scroll-container { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.scroll-container::-webkit-scrollbar { display: none; }
/* Mobile: vertical stack */

@media (max-width: 991.98px) {
  .scroll-container .d-flex { flex-direction: column; }
  .scroll-container .card { width: 100%; margin-bottom: 1rem; }
  #schedule-container {gap: 1.5rem;}
  .shift-item {width: 100% !important;}
}
/* Desktop: single row */
@media (min-width: 992px) {
  .scroll-container .d-flex { justify-content: space-between; }
  .scroll-container .card { flex: 1 1 auto; min-width: 0; width: calc((100% - 6rem)/7); margin-right: 1rem; }
  .scroll-container .card:last-child { margin-right: 0; }
}

/* CLASS TO ALLOW THE GIVEN CONTAINER TO USE FULL SCREEN WIDTH AND BREAK INTO THE CONTENT CONTAINER DIV */
.break-content-container {
  width: 80vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
}

@media (max-width: 1399.98px) {
  .break-content-container {
    width: 90vw;
  }
}

.day-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.day-header {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2d3748; 
    margin-bottom: 0.5rem;
    position: relative;
}
.day-header .day-name {
    font-weight: 600;
    font-size: 1.1rem;
}
.day-header .day-date {
    font-size: 0.9rem;
    color: #a0aec0; 
}
.day-header .add-shift-btn {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    background-color: #2d3748;
    color: #e2e8f0;
    transition: all 0.2s ease;
}
.day-header .add-shift-btn:hover {
    background-color: #4a5568;
    transform: scale(1.1);
}


.shift-item {
    background-color: #fff; 
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    animation: fadeIn 0.5s ease;
    border: none;
    width: 10rem;
    box-sizing: border-box;
}
.shift-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.shift-item,
.shift-item .shift-item-employee,
.shift-item .shift-item-details,
.shift-item .shift-item-details span {
    color: #2d3748; 
}

.shift-item-employee {
    font-weight: 600;
    white-space: normal; 
    word-break: break-word; 
}

.shift-item-details {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.35rem;
    white-space: normal;
    word-break: break-word;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shifts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}

#roster_dropdown{
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
  margin-top: -0.5em;
  width: 100%;
}

.role-colour-block {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.info-tooltip-icon,
.danger-tooltip-icon {
  font-size: 0.8rem;
  background-color: #dee2e6;
  border-radius: 50%;
  cursor: pointer;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  line-height: 1.2rem;
  font-weight: bold;
  top: 0.25rem;
  right: 0.25rem;
}

.danger-tooltip-icon {
  background-color: #F08080;
}

.shift-item .info-tooltip-icon {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.shift-item:hover .info-tooltip-icon {
  opacity: 1;
  pointer-events: auto;
}

.schedule-table-view {
    width: 100%;
    min-width: 1500px;
    
    border-collapse: separate;
    border-spacing: 0.5rem 0; 
    background-color: transparent; 
    border-radius: 0; 
    overflow: visible; 
    table-layout: fixed;
}

.schedule-table-view th,
.schedule-table-view td {
    padding: 0.75rem;
    text-align: left;
    vertical-align: top; 
    border-bottom: 1px solid #4a5568;
}

/* Style the header row */
.schedule-table-view thead {
    background-color: rgba(0, 0, 0, 0.2);
}

.schedule-table-view th {
    font-weight: 600;
}

/* Style the first "Employee" column */
.schedule-table-view .employee-name-cell {
    width: 200px; 
    font-weight: 600;
    border-right: 1px solid #4a5568;
    vertical-align: middle; 
    white-space: normal; 
    word-break: break-word;
}

/* Style the cells that contain the shifts */
.schedule-table-view .shift-cell {
    min-height: 110px; 
    height: 1px; 
}

/* The container inside each cell that holds the shifts */
.schedule-table-view .shift-cell > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}

.schedule-table-view th {
    position: relative; 
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}

/* Style the new add button in the table header */
.schedule-table-view .add-shift-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.schedule-table-view .add-shift-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.schedule-table-view .shift-item {
    display: inline-block; 
    text-align: left;      
    width: auto;           
    max-width: 100%;       
}

/* Manager-dashboard tiles */
.dashboard-tile{
  background: linear-gradient(135deg,#01334a 0%,#020f20 100%) !important;
  color:#fff;
  border-radius:1rem;
  position:relative;          
  overflow:hidden;
  transition:transform .25s;
}

.dashboard-tile i{ color:#29b9e4 !important; }

.dashboard-tile:hover{ transform:translateY(-4px); }

/* gradient stroke (1 px) */
.dashboard-tile::before{
  content:"";
  position:absolute; inset:0;
  padding:1px;
  border-radius:inherit;
  background:linear-gradient(135deg,#265a70 0%, #17364f 100%);
  -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  pointer-events:none;
}

/* ─── Generic gradient table ───────────────────────────────────────── */
.gradient-table{
  --grad-start:#0e3749;
  --grad-end:#091525;


  background:linear-gradient(135deg,var(--grad-start) 0%,var(--grad-end) 100%);
  border-color:#1f2d3c;

  border-radius:0.75rem;
  overflow:hidden;
}

/* Used to control the color of the border around the cells inside the table */
.gradient-table,                     
.gradient-table thead th,             
.gradient-table tbody td,             
.gradient-table tbody + tbody {      
  border: 1.5px solid #3c5874 !important;   
}


.gradient-table thead{
  background:inherit;
}

.gradient-table thead th{
  background:transparent !important;
  color:#f4f4f9;
  border-bottom:2px solid #1f2d3c;
}


.gradient-table tbody tr:not([class*="table-"])
               td:not([class*="table-"]){
  background-color:transparent !important;
  color:#f4f4f9;
}

.gradient-table.table-striped > tbody > tr:nth-of-type(odd):not([class*="table-"])
        > td:not([class*="table-"]){
  background-color:transparent !important;
}

.gradient-table th,
.gradient-table td{ border-color:#1f2d3c; }


/* ────────────────────────────────────────────────────────────────
   gradient‑panel
─────────────────────────────────────────────────────────────────*/
.gradient-panel{
  --grad-start:#0e3749;
  --grad-end:#091525;

  background:linear-gradient(135deg,var(--grad-start) 0%,var(--grad-end) 100%) !important;

  border-radius:0.75rem;
  box-shadow:0 4px 8px rgba(0,0,0,.25);
  color:#e2e8f0;
  border:1px solid #1f2d3c; 
}

.gradient-panel h3,
.gradient-panel h4{
  color:#f4f4f9;
}

/* ────────────────────────────────────────────────────────────────
   btn-gradient  
─────────────────────────────────────────────────────────────────*/
.btn-gradient{
  background:#2596be !important;   /* flat teal-blue */
  border:none;
  color:#fff !important;

  border-radius:0.5rem;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
  transition:transform .2s,box-shadow .2s;
}

/* subtle lift on hover / focus */
.btn-gradient:hover,
.btn-gradient:focus{
  background:#2084a6 !important;   
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(0,0,0,.35);
}

/* Styling of the select a store dropdown */
#storeSelectDropdown{
  background:#1e2530;
  border:1px solid #3b82f6;
  color:#f4f4f9;
  appearance:none;
}
#storeSelectDropdown:focus{
  box-shadow:0 0 0 .15rem rgba(59,130,246,.5);
  border-color:#3b82f6;
}

.select-pill-container{
  background:transparent;
}

.select-icon,
.select-icon i{
  pointer-events:none;
  color:#9ca3af;
}

#storeSelectionController,
#storeSelectionController .select-pill-container,
#storeSelectDropdown{
  box-shadow:none !important;
}

/* Remove default show password icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}


/* ─── Gradient action buttons ─────────────────────────── */
.btn-clock-in{
  color:#fff !important;
  background:linear-gradient(90deg,#01a894 0%, #0d5b9d 100%) !important;
  border:none;
}
.btn-clock-in:hover,
.btn-clock-in:focus{
  filter:brightness(1.1);
}

.btn-clock-out{
  color:#fff !important;
  background:linear-gradient(90deg,#ff7a00 0%, #d40000 100%) !important; /* orange → red */
  border:none;
}
.btn-clock-out:hover,
.btn-clock-out:focus{
  filter:brightness(1.1);
}

#clockingButton:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.btn-report {
    background: rgba(0, 180, 255, 0.22);
    border: 2px solid rgba(0, 200, 255, 0.9);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 20px;
    border-radius: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.35);
}

.btn-report:hover {
    background: rgba(0, 200, 255, 0.9);
    color: #00141f;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0, 219, 255, 0.8);
}

.btn-report:active {
    transform: scale(0.97);
}

@media (min-width: 768px) {
    .btn-report {
        font-size: 1.05rem;
        padding: 18px 22px;
    }
}