:root {
  --primary-blue: #1877f2;
  --background-gray: #f0f2f5;
  --card-background: #ffffff;
  --text-primary: #1c1e21;
  --text-secondary: #606770;
  --border-color: #dddfe2;
  --green-accent: #42b72a;
  --green-darker: #48B3AF;   
  --red-accent: #fa3e3e;
  --nav-black:  #424769;
  --nav-darkerblack: #2A2D43;
  --bg-gradient: linear-gradient(
    45deg,
    rgb(28, 101, 99) 0%,
    rgb(42, 155, 151) 50%,
    rgba(87, 199, 133, 1) 82%,
    rgb(177, 199, 87) 83%,
    rgba(87, 199, 133, 1) 84%,
    rgb(42, 155, 151) 100%
  );

  --GIorange: #ff6200;

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* This is the only line that changes */
  font-family: 'Poppins', sans-serif; 
  
  background-color: var(--background-gray);
  color: var(--text-primary);
  padding-top: 50px;
}

.auth-container {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
              0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 40px auto;
}

.auth-container-register {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
              0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 40px auto;
}

#set-shift-btn{
background-color: #424769;
padding: 10.5px;
width: 100px;
border: 1.5px solid var(--border-color);
transition: background-color 0.5s, border-color 0.2s;
}

#set-shift-btn:hover{
background-color: #647FBC;
border-color: #1877f2;
}



h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

form div {
  margin-bottom: 1rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 15px;
}

.inFo{
  color: var(--GIorange);
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px #e7f3ff;
}

#dashboard-container .logout-btn{
    padding: 10px;
    width: 25% ;
    flex-direction: initial;
}



#profile-update-form .upDate-Btn{
    background-color: var(--nav-black) ;
    width: 30%;
    font-size: .90rem;
    font-weight: 500;
    padding: 8px;
}

#password-update-form .upDate-Btn{
    background-color: var(--nav-black) ;
    width: 30%;
    font-size: .90rem;
    font-weight: 500;
    padding: 8px;
}

.top-nav .back-btn{
  background-color: var(--nav-black);
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  gap: 7px; 
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  
}


button,
.btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 6px;
  background-color: var(--primary-blue);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: filter 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.btn:hover {
  border: 3 solid orange !important;
}

.auth-container p {
  margin-top: 1rem;
  color: var(--text-secondary);
}

#controls-container{
  margin-top: 1rem;
}

#controls-container h3 {
  font-size: .95rem;
  padding: 0;
  font-weight: 400;
  margin-bottom: 0;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: double;
}

.error-message {
  color: var(--red-accent);
  background-color: #ffebe8;
  border: 1px solid var(--red-accent);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.success-message {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.dashboard-container {
  display: flex;
  gap: 30px;
  padding: 20px;
  align-items: flex-start;
  max-width: 900px;
  margin: 20px auto;
}

.dashboard-card {
  background-color: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3 {
  margin-top: 10px;
  margin-bottom: 1rem;
}

#current-status-display {
  font-weight: bold;
  color: orangered;
  font-size: 1.2rem;
}

.status-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: .7rem 0;
}

.status-btn {
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: #f5f6f7;
  color: var(--text-primary);
  transition: background-color 0.2s, border-color 0.2s;
}

.status-btn:hover {

  background-color: #647FBC;
  color: white;
  border-color: lightblue;
}



.status-btn[data-status="End"] {
  background-color: #ffebe8;
  color: var(--red-accent);
  border-color: var(--red-accent);
  font-weight: 600;
}

.dashboard-card hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

#total-running-hours {
  font-size: 2.5rem;
  color: var(--text-primary);
  text-align: center;
}

.aux-summary p {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.aux-summary p:last-child {
  border-bottom: none;
}

.shift-date-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.shift-date-form input {
  flex-grow: 1;
}

.btn-small {
  width: auto;
  padding: 12px 20px;
  font-size: .90rem;
  font-weight: 600;
  background-color: var(--nav-black);
  transition: background-color 0.3s ease, color 0.3s ease
}

.btn-small:hover{
  background-color: var(--GIorange);
}


.btn-small-save {
  width: auto;
  padding: 12px 20px;
  font-size: .90rem;
  font-weight: 600;
  background-color: var(--nav-black);
  transition: background-color 0.3s ease, color 0.3s ease
}

.btn-small-save:hover{
  background-color: var(--green-accent);
}

.btn-small-add {
  width: auto;
  padding: 8px 12px;
  font-size: .90rem;
  font-weight: 600;
  background-color: var(--nav-black);
  transition: background-color 0.3s ease, color 0.3s ease
}

.btn-small-add:hover{
  background-color: var(--GIorange);
}


.page-container .btn{
  background-image: linear-gradient(to right, var(--nav-black),var(--nav-darkerblack));
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  gap: 8px; 
}






.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center; /* ✅ aligns buttons to the bottom of selects */
    margin-bottom: 15px;
}
.filter-form div {
    display: flex;
    flex-direction: column;
}
.filter-form button {
    height: 36px; /* ✅ matches select/input height */
}

.filter-form .btn-small{
  font-size: 12px;
}


.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(to right, var(--nav-black),var(--nav-darkerblack));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.top-nav .logo {
  font-weight: bold;
  font-size: 1.3rem;
  color: white;
}

.top-nav .settings-icon {
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.top-nav .settings-img-icon{
    height: 1.9rem;
    width: 1.9rem;
    transition: transform 0.4s ease;
}

.top-nav .settings-img-icon:hover {
    transform: rotate(360deg); /* clockwise rotation */
}




.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
}

.close-btn{
    height: 1rem;
    width: 1rem;
}

.hidden {
  display: none !important;
}

/* --- Notification / Toast Pop-up Styles --- */
#notification-container {
    position: fixed;
    top: 80px; /* Below the nav bar */
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-card .total-hrs-shft{
  justify-content: center !important;
  width: 100%;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px  white;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
}

/* Animation for the toast */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Different colors for different notification types */
.toast.success {
    background-color: var(--green-accent);
}

.toast.error {
    background-color: var(--red-accent);
}

.toast.info {
    background-color: var(--primary-blue);
}

.toast.warning {
    background-color: #ff9800; /* A noticeable orange */
}


#refresh-summary-btn { cursor: pointer; font-size: 1.2rem; color: var(--primary-blue); margin-left: 10px; display: inline-block; transition: transform 0.5s; }
#refresh-summary-btn:hover { transform: rotate(180deg); }

.refresh-img-btn{
    height: 1.2rem;
    width: 1.2rem;
}

.GI-Logo{
    height: 3rem;
    margin: 0;
    padding: 0;
}

/* ADD these styles anywhere in your CSS file */

.table-container {
    /* Sets a maximum height. If content exceeds this, a scrollbar will appear. */
    max-height: 500px; 
    /* Enables vertical scrolling only when needed. */
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
}

/* This makes the table header stay at the top while you scroll the table body. */
.table-container thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-gradient)!important;
    color: white !important;
    /* The existing background color from your stylesheet will prevent text from showing through. */
}

.export-form .DL-BTN{
  font-size: 12px !important;
  padding: 10px;
  background-color: var(--nav-black);
}

/* ADD this style for the new button container */
.action-buttons-container {
    display: flex;
    gap: 10px;
}

.logs-profiler-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    
}

.logs-profiler-row a {
    flex: 1; /* makes both take equal width */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .75rem;
    background-color: #424769;
    transition: background-color 0.2s ease, color 0.2s ease
}

.logs-profiler-row a:hover{
background-color: #647FBC;
color: white;
}




/* ADD THESE STYLES FOR THE REGISTRATION FORM GRID LAYOUT */

.form-grid-container {
    display: grid;
    /* Create two equal-width columns */
    grid-template-columns: 1fr 1fr;
    /* Add some space between the grid items */
    gap: 0 1.5rem; /* 0 for top/bottom, 1.5rem for left/right */
    text-align: left;
}

/* Make a grid item span both columns */
.form-full-width {
    grid-column: 1 / -1; /* Span from the first to the last column line */
}

/* Override the default margin for divs inside the grid to rely on the 'gap' property */
.form-grid-container > div {
    margin-bottom: 1rem;
}

.reg-btn{
  width: 50%;
  margin-bottom: 10px;
  background-color: var(--nav-black);
}

.Log-In-btn{
  margin-bottom: 10px;
  background-color: var(--nav-black);
}

.warning td { background-color: #fff3cd !important; }
.danger td  { background-color: #f8d7da !important; }

.combined-card {
  display: flex;
  flex-direction: column;
}
.combined-card h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.black{
  color:black;
}


/* ✅ Existing End button (keep your current size and font) */
.end-btn {
  background-color: var(--red-accent);
  padding: 3px;
  font-size: 15px;
  width: 50px;
  font-weight: 450;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.3s ease;
}

.end-btn:hover {
  transform: scale(1.05);
  background-color: #d32f2f; /* deeper red on hover */
}

/* 🔹 New Force Logout button — same layout size, different color */
.force-btn {
  background-color: #2a7b9b; /* teal-blue tone */
  padding: 3px;
  font-size: 15px;
  width: 90px;
  font-weight: 450;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 6px;
  transition: transform 0.15s ease, background 0.3s ease;
}

.force-btn:hover {
  transform: scale(1.05);
  background-color: #1d556c; /* slightly darker hover */
}

td:contains("🟢 Active") { color: green; font-weight: bold; }
td:contains("⚫ Idle") { color: #666; font-weight: bold; }

option {font-size: 10px !important; }


/* ✅ Only move the buttons to the right */
#profile-update-form .upDate-Btn,
#password-update-form .upDate-Btn,
#settings-modal-overlay .btn[href="/logout"] {
  display: block;
  margin-left: auto; /* pushes the button to the right */
  width: 30%;
}

th, td {
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.2);
}
