@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --primary: #005eff;
  --primary-dark: #0041cc;
  --background: #f5f7fb;
  --white: #ffffff;
  --text: #1e1e1e;
  --muted: #6b7280;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--text);
  scroll-behavior: smooth;
}

/* LOGIN PAGE  */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f7f7f7;
  padding: 20px;
  gap: 50px;
}

.login-homepage{
  background-color:#005eff;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 200ms ease-in-out;
  font-size: 0.75rem;
}

.login-homepage:hover{
  background-color:#0041cc;
}

.login-form-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 380px;
  width: 100%;
}

.login-image-section img {
  max-width: 380px;
  height: auto;
}

@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }
  .login-image-section img {
    max-width: 280px;
  }
}

#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.85;
  pointer-events: none; /* opțional, nu permite clickuri pe video */
}

/* NEW LOGIN PAGE  */


/* END LOGIN PAGE  */

.forgot-link {
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
  text-align: center;
}

.forgot-link:hover {
  text-decoration: underline;
}

.custom-alert {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.custom-alert.error {
  color: red;
}

#authForm{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(255, 255, 255);
}

@media screen and (max-width: 480px) {
  #authForm {
    width: 90%;
  }
}

.admin-btn{
  background-color: #005eff;
  color:white;
  padding: 10px 20px;
  margin-bottom: 5px;
  transition: 200ms ease-in;
}

.admin-btn:hover{
  background-color: var(--primary-dark);
}


/* END LOGIN PAGE  */

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.logo-container img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

form {
  width: 100%;
  max-width: 400px;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

input {
  padding: 10px;
  font-size: 16px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  transition: border-color 0.3s ease;
  cursor: pointer;
  color: #000000;
}

input::placeholder {
color: #828282;
}

input:focus {
  border-color: var(--primary);
  outline: none;
}

button {
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#assignmentNo, #initials, #directorate{
 width: 100%;
 margin-top: 15px;
}

#loginBtn {
  background-color: var(--primary);
  color: var(--white);
}

#loginBtn:hover {
  background-color: var(--primary-dark);
}

#signupBtn {
  background-color: #eaeaea;
  color: var(--text);
}

#signupBtn:hover {
  background-color: #ddd;
}

#signupForm select {
  appearance: none;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.top-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0; /* fundal */
  overflow: hidden;
  pointer-events: none; /* nu blochează click-uri */
}

.top-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

#result {
  margin-top: 10px;
  font-weight: 500;
  color: var(--muted);
}

/* Radio group */
.radio-cards {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.radio-cards input[type="radio"] {
  display: none;
}

.radio-card {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px 18px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  width: 150px;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.radio-card:hover {
  border-color: var(--primary);
}

.radio-card span {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.radio-cards input[type="radio"]:checked + .radio-card {
  border-color: var(--primary);
  background: #f8faff;
  /* box-shadow: 0 0 0 1px #0a1747 inset; */
}



/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
  margin-top: 4px;
}

.checkbox-group a {
  color: #0a1747;
  text-decoration: underline;
}


#tripList {
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
  width: min(100%, 400px);

}

#tripList li {
  background: #f9f9f9;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#logoutBtn {
  background: none;
  color: var(--primary);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.submit-log{
  background-color: var(--primary);
  color: var(--white);
}

.submit-log:hover {
  background-color: var(--primary-dark);
}

#freeTrialBtn {
  background-color: #28a745;
  color: white;
}

#paidSubscriptionBtn {
  background-color: #007bff;
  color: white;
}

button.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
  cursor:not-allowed;
}

button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform:translateY(-50%) rotate(360deg); }
}

/* LOADING FULL SCREEN  */

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#spinnerLogo {
  width: 150px;
  margin-bottom: 15px;
}

#spinnerSquare {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.square {
  width: 12px;
  height: 60px;
  background-color: var(--primary); /* portocaliul brandului */
  border-radius: 15px;
  animation: stretch 1.2s infinite ease-in-out;
}

.square-2 {
  animation-delay: 0.2s;
  background-color: var(--primary-dark); /* un gri închis elegant */
}

.square-3 {
  animation-delay: 0.4s;
  background-color: var(--primary); /* revine la portocaliu */
}

@keyframes stretch {
  0%, 40%, 100% {
    transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
  }
}

#spinnerText {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  font-size: 16px;
  margin-top: 0px;
}



/* END LOADING FULL SCREEN  */


/* Responsive Design */
@media screen and (max-width: 480px) {
  .logo-container img {
    width: 120px;
  }

  form {
    padding: 24px;
  }

  input, button {
    font-size: 15px;
    padding: 12px;
  }
}


/* STILIZARE OTHER REASON */

select#reasonSelect,
input#customReason {
  padding: 14px;
  font-size: 16px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  background-color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.2s ease;
  appearance: none; /* elimină săgeata default pe unele browsere */
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20fill%3D%22%23005eff%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5H7z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

select#reasonSelect:focus,
input#customReason:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 94, 255, 0.2);
  outline: none;
}



select:invalid {
  color: #828282; /* gri pentru placeholder */
}

select:valid {
  color: #000; /* culoarea normală după alegere */
}
/* STILIZARE EDIT AND DELETE BUTTONS */

#tripList button {
  /* margin-top: 8px; */
  margin-right: 10px;
  padding: 6px 10px;
  font-size: 12px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  float: right;
}

.edit-btn {
  background-color: #ffd700;
  color: #1e1e1e;
}

.delete-btn {
  background-color: #ff4d4f;
  color: white;
}

/* STILIZARE MODAL ATENTIONARE DELETE  */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  margin-top: 0;
  color: var(--primary);
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.modal-buttons .confirm {
  background-color: #e53935;
  color: white;
}

.modal-buttons .cancel {
  background-color: var(--muted);
  color: white;
}

/* EDITING MODE  */

.edit-banner {
  background-color: #ffcdcd;
  color: #000000;
  border: 1px solid #ff0000;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#cancelEditBtn{
  margin-left: 20px;
  background-color: red;
  color: white;
}

.editing {
  border: 2px solid var(--primary);
  padding: 1rem;
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #22c55e; /* green */
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.trip-item.updated {
  background-color: #d1e7dd;
  transition: background-color 0.5s ease;
}

/* ========== STILIZARE DATE INPUT =========== */

input[type="date"] {
  padding: 14px;
  font-size: 16px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  background-color: var(--white);
  transition: border-color 0.3s ease;
}

input[type="date"]:focus {
  border-color: var(--primary);
  outline: none;
}

.date-filters{
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  background-color: white;
  border-radius: var(--radius);
  transition: border 0.3s ease, box-shadow 0.3s ease;


}

.date-filters h1{
  font-size: 1.5rem;
  text-align: center;
  
}

#exportBtn{
  background-color: var(--primary);
  color: var(--white);
  margin-top: 1rem;
}

#exportBtn:hover{
  background-color: var(--primary-dark);
}

@media screen and (max-width: 480px) {
.date-filters div{
  display: flex;
  flex-direction: column;
}
}

input[type="date"] {
  width: 100%;
  padding: 12px;
  height: 48px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: inherit;
  background-color: white;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="date"]:focus {
  border: 1px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
  outline: none;
}

.input-wrapper {
  position: relative;
  /* margin-bottom: 20px; */
}

/* Placeholder fals */
.fake-placeholder {
  position: absolute;
  top: 62%;
  left: 15px;
  transform: translateY(-50%);
  color: #828282;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease;
  display: none;
}

/* Ascunde placeholderul când inputul are valoare sau e în focus */
.input-wrapper input:focus + .fake-placeholder,
.input-wrapper input:not(:placeholder-shown):valid + .fake-placeholder {
  opacity: 0;
  transform: translateY(-60%);
}


/* Elimină icon-ul default și personalizează pe Chrome/Edge */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.4); /* opțional: schimbă culoarea */
  opacity: 0.6;
  cursor: pointer;
}

.log-date .fake-placeholder{
  top: 50%!important;
}

/* Arată doar pe mobil */
@media (max-width: 768px) {

  input[type="date"]::-webkit-datetime-edit {
    color: transparent;
    text-align: left;
    padding-left: 0; /* elimină offset */
  }

    /* ca fallback general */
    input[type="date"] {
      text-align: left;
    }

  input[type="date"]:focus::-webkit-datetime-edit {
    color: black; /* sau #333, cât vrei tu */
  }

  input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
  }

  .fake-placeholder {
    display: block;
    position: absolute;
    top: 62%;
    left: 15px;
    transform: translateY(-50%);
    color: #828282;
    font-size: 16px;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .input-wrapper input:focus + .fake-placeholder,
  .input-wrapper input:valid + .fake-placeholder {
    opacity: 0;
    transform: translateY(-60%);
  }
}

/* ================= SIGNUP PAGE  ==============*/

.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1d3557;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  text-align: left;

  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.alert.success {
  background-color: #2a9d8f;
}

.alert.error {
  background-color: #e63946;
}

.alert.show {
  opacity: 1;
  pointer-events: auto;
}

.hidden {
  display: none;
}

#signupForm{
  margin-top: 15px;
}

#signupSubmitBtn {
  cursor: not-allowed;
}

#signupSubmitBtn.active {
  background: var(--primary);
  color: white;
  cursor: pointer;
}

#signupSubmitBtn.active:hover {
  background: var(--primary-dark);
}

/* ========== PROFILE PAGE  */

#editProfileForm{
  max-width: 100%!important;

}

.profile-danger-btn{
  background-color:#e53935;
  color:white;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  transition: 200ms ease-in-out;
}
.profile-danger-btn:hover{ background-color:#c62828; }


.profile-page-body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 0;
}

.profile-container {
  position: absolute;
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  width: 100%;
  margin: 5px auto;
  padding: 20px;
  z-index: 9999;
}

.profile-topbar {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.profile-logo {
  width: 10rem;
  height: auto;
}

.profile-title{
  margin: 0;
  padding: 0;
}

.profile-card {
  border-radius: 12px;
  width: 100%;
  margin: 0 auto;
  max-width: 400px;
}

.profile-form-group {
  /* margin-bottom: 18px; */
}

.profile-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.profile-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
}

.profile-primary-btn {
  padding: 12px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.profile-primary-btn:hover {
  background-color: var(--primary-dark);
}

.profile-alert {
  margin-bottom: 15px;
  color: green;
  font-weight: 500;
}

.profile-secondary-btn {
  padding: 10px 18px;
  background-color: transparent;
  color:var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.profile-secondary-btn:hover {
  background-color: var(--primary);
  color: white;
}

.profile-toast {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #111;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9em;
  opacity: 0;
  transition: top 0.5s ease, opacity 0.5s ease;
  z-index: 99999;
}
.profile-toast.show {
  top: 20px;
  opacity: 1;
}

.danger-zone{
  text-align: center;
  padding: 10px 5px;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
  border-radius: 14px;
}

.btn-danger{
  background-color:#e53935;
  color:white;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  transition: 200ms ease-in-out;
}
.btn-danger:hover{ background-color:#c62828; }

.plan-cards { display:flex; gap:14px; flex-wrap:wrap; }
.plan-card { border:1px solid #e5e7eb; border-radius:12px; padding:14px 16px; width:220px; cursor:pointer; position:relative; }
.plan-card input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.plan-card .plan-title { font-weight:600; }
.plan-card .plan-price { color:#374151; margin-top:4px; }
.plan-card .plan-badge { position:absolute; top:10px; right:10px; font-size:12px; background:#eef2ff; color:#3730a3; padding:2px 8px; border-radius:999px; }
.plan-card:has(input:checked) { outline:2px solid #3b82f6; border-color:#bfdbfe; }

.plan-actions { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.btn { padding:10px 14px; border-radius:10px; border:1px solid #1111; cursor:pointer; }
.btn.primary { background:#001563; color:#fff; }
.btn.ghost { background:#fff; }
.btn.link { background:transparent; text-decoration:underline; border:none; padding-inline:0; }

.toast { position:relative; margin-top:10px; display:none; padding:10px 12px; border-radius:10px; }
.toast.show { display:block; }
.toast.ok { background:#e6fffa; color:#065f46; border:1px solid #99f6e4; }
.toast.err { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.muted { color:#6b7280; font-size:14px; margin-top:8px; }

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* DASHBOARD USER PROFILE  */

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

.user-info {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  text-transform: uppercase;
}

.user-text {
  display: flex;
  flex-direction: column;
}

#userFullName {
  font-weight: 600;
  font-size: 1em;
}

.edit-link {
  font-size: 0.85em;
  color: #007bff;
  text-decoration: none;
  margin-top: 2px;
}

.logout-btn {
  background-color: transparent;
  border: 1px solid red;
  color: red;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: rgba(255, 0, 0, 0.1);
}

.toast-success {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #28a745;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: top 0.5s ease;
}

.toast-success.show {
  top: 20px;
}

/* UPGRADE SECTION  */

.container-upgrade{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: white;
  width: min(90%, 50rem);
  margin: 3rem auto;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
}

.subscribe-button{
  background-color: #005eff;
  color: white;
}

.subscribe-button:hover{
  background-color: #0041cc;
  color: white;
}




@media screen and (max-width: 600px) {
  .container-upgrade{
    text-align: center;
  }
  
  .upgrade-buttons{
    display: flex;
    gap: 1rem;
    flex-direction: column;
  }
}



/* ESSENTIAL NON ESSENTIAL USER  */

/* Stil general pentru input și select */
.category-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

#usageCategory,
#otherCategoryText {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

#usageCategory:focus,
#otherCategoryText:focus {
  border-color: #007bff;
  outline: none;
}

/* Eticheta */
.category-box label {
  font-weight: 500;
  margin-bottom: 4px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: white;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23999" d="M6 8L0 0h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 7px 7px;

  padding-right: 36px; /* spațiu pentru săgeată */
  border: 1px solid #cccccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}

/* END ESSENTIAL AND NON ESSENTIAL USER  */

/* REPORT BY EMAIL  */

#sendReportBtn{
  width: 100%;
  background-color: var(--primary);
  color: white;
  margin-top: 15px;
  transition: 0.2s ease-in;
}

#sendReportBtn:hover{
  background-color: var(--primary-dark);
}

#exportEmail{
  width: 100%;
  margin-top: 15px;
}

.date-filters{
  box-shadow: var(--shadow);
}

.date-filters label{
  margin:0 10px;
}

#startDate,#endDate{
margin: 10px 0;
}

/* END REPORT BY EMAIL  */

/* RESET PASSWORD STILING  */

#resetMessage {
  display: none;
  background-color: #f2f2f2;
  border-left: 4px solid #28a745;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  color: #212529;
  margin-top: 20px;
  border-radius: 8px;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#resetMessage a {
  display: inline-block;
  margin-top: 12px;
  color: #007BFF;
  font-weight: 500;
  text-decoration: none;
}

#resetMessage a:hover {
  text-decoration: underline;
}

#resetBtn {
  background-color: #007BFF;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  transition: background-color 0.3s;
}

#resetBtn:disabled {
  background-color: #6c757d;
  cursor: wait;
}

#resetForm input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  transition: border-color 0.3s;
}

#resetForm input[type="password"]:focus {
  border-color: #007BFF;
  outline: none;
}

/* Password reveal */
.pw-field { position: relative; }
.pw-field input[type="password"],
.pw-field input[type="text"] { padding-right: 44px; width: 100%; }

.pw-toggle{
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 0; background: transparent; cursor: pointer;
  color: #6b7280; z-index: 1;
}
.pw-toggle:focus { outline: 1px solid #005eff; outline-offset: 2px; border-radius: 6px; }

.pw-toggle .fa-eye-slash{ display:none; }           /* implicit: arătăm “eye” */
.pw-field.showing .fa-eye{ display:none; }          /* când e vizibilă parola… */
.pw-field.showing .fa-eye-slash{ display:inline; }  /* …arată “eye-slash” */

.pw-toggle .pw-hide { display: none; }


/* DASHBOARD CU ACORDION  */

#logContainer{
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
  width: min(100%, 400px);
}

.accordion-header {
  background: var(--primary);
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  margin-top: 20px;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 16px; 
}

.accordion-header * {
  pointer-events: none; /* forțează click-ul să fie capturat de header */
}

.accordion-icon {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
  pointer-events: none;

}

.accordion-header:hover {
  background: var(--primary-dark);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.2s ease;
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 0 20px;
  min-height: 110px; /* sau cât vrei ca să se observe */
}

.accordion-body.open {
  padding: 0px 20px;
}

.trip-log {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.multiTrips.card { background:#fff; border:1px solid #eee; border-radius:14px; padding:14px; margin-top:14px }
.multiTrips__header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px }
.multiTrips__list { display:flex; flex-direction:column; gap:12px; margin-top:8px }
.multiTrips__actions .btn { margin-left:8px }
.multiTrips__hint { color:#6b7280; font-size:12px; margin-top:8px }

/* Rândul - mobile first (totul pe o coloană) */
.multi-row { display:grid; grid-template-columns: 1fr; gap:8px; align-items:center }
.multi-row input, .multi-row select {
  height:42px; border-radius:10px; border:1px solid #ddd; padding:0 12px; width:100%; background:#fff;
}
.multi-row .reasonWrap { display:flex; gap:8px; }
.multi-row .remove { justify-self:end; width:44px; height:44px; border-radius:10px; border:1px solid #eee; background:red; color:white; cursor:pointer }

/* >= 720px: From + To pe un rând, Reason jos full width, remove la dreapta jos */
@media (min-width:720px){
  .multi-row{ grid-template-columns: 1fr 1fr; }
  .multi-row .reasonWrap{ grid-column: 1 / -1; }
  .multi-row .remove{ grid-column: 2; justify-self:end; }
}

#btnAddTrip, #btnClearTrips{
  background-color: #005eff;
  color: white;
  padding: 10px 20px;
}

#btnAddTrip, #btnClearTrips:hover{
  background-color: #0041cc;
}

@media screen and (max-width: 600px) {
  .multiTrips__header{
    flex-direction: column;
    gap: 7px;
  }
  }


@media screen and (max-width: 600px) {
  .accordion-header {
    font-size: 15px;
    padding: 12px 16px;
  }

  .trip-log {
    font-size: 14px;
  }
}

#logContainer button {
  margin-top: -20px;
  margin-right: 10px;
  padding: 6px 10px;
  font-size: 12px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  float: right;
}

.trip-log.updated {
  background-color: #d1e7dd;
  transition: background-color 0.5s ease;
}

@keyframes formGlow {
  0% { box-shadow: 0 0 0px rgba(0, 123, 255, 0); }
  50% { box-shadow: 0 0 20px rgba(0, 123, 255, 0.5); }
  100% { box-shadow: 0 0 0px rgba(0, 123, 255, 0); }
}

#tripForm.glow {
  animation: formGlow 1.5s ease-in-out;
  border-radius: 10px;
}

.trip-log.active-editing {
  color: red;
  transition: background 0.3s ease, border 0.3s ease;
}

/* PROGRESS BAR  */

.mileage-progress-container {
  margin: 20px 0;
  font-size: 14px;
  max-width: 400px; /* opțional, ca să nu fie prea lată */
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 15px;
  background: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 5px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  width: 0;
  color: white;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  line-height: 15px; /* ca textul să fie centrat vertical */
  border-radius: 12px 0 0 12px; /* colțuri rotunjite pe partea stângă */
  transition: width 0.4s ease, background-color 0.4s ease;
  padding-left: 3px;
}

/* Culoare roșie dacă depășește 10k */
.progress-fill.over-limit {
  background: linear-gradient(90deg, #d9534f, #c9302c);
}


/* ===============================
   Policy Pages (Terms, Privacy, Refund)
   =============================== */

   body.policy-page {
    /* background: #f8f9fa; */
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }
  
  .policy-container {
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }
  
  .policy-logo {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .policy-logo img {
    max-width: 160px;
  }
  
  .policy-container h1 {
    font-size: 28px;
    color: #0d47a1;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .policy-container .effective-date {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 30px;
  }
  
  .policy-container h2 {
    font-size: 20px;
    margin-top: 25px;
    color: #333;
  }
  
  .policy-container p {
    margin-bottom: 16px;
    color: #555;
  }
  
  .policy-container ul {
    margin: 10px 0 20px 25px;
    color: #555;
  }
  
  .policy-container footer {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin: 50px 0 20px;
  }
  
  @media screen and (max-width: 945px) {
    .policy-container {
      width: 90%;
    }
  }

  /* TOOLTIP DASHBOARD  */

  .tooltip {
    position: relative;
    cursor: help;
  }
  
  .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* deasupra textului */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* săgeata mică */
  .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }
  
  /* SIGNUP PAGE  */

  #gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* ← cheia */
    z-index: -1; /* pune-l sub formular */
    --gradient-color-1: #6a7dff;
    --gradient-color-2: #8e5fff;
    --gradient-color-3: #a7c8ff;
    --gradient-color-4: #fe4040;
    --gradient-color-5: #e4eaff;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);

  }

    /* Canvas-ul animat */
    #gradient-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1;
      height: 100%;
    }
    