/* Admin Roles table readability tweaks */
.admin-roles-table th:nth-child(1) { width: 60px; }
.admin-roles-table th:nth-child(2) { width: 180px; }
.admin-roles-table th:nth-child(3) { width: 35%; }
.admin-roles-table th:nth-child(4) { width: 140px; }
.admin-roles-table th:nth-child(5) { width: 100px; }
.admin-roles-table th:nth-child(6) { width: 200px; }

.admin-roles-table td input.form-control,
.admin-roles-table td select.form-select {
  min-width: 120px;
}
.modal-content{
  min-width: fit-content;
}
@media (max-width: 992px) {
  .admin-roles-table th:nth-child(2) { width: 140px; }
  .admin-roles-table th:nth-child(4) { width: 120px; }
  .admin-roles-table th:nth-child(6) { width: 160px; }
}
/* --- App baseline polish (subtle, Apple-like) --- */
html, body {
  background: var(--color-bg-apple); /* macOS system gray */
  background-color: var(--color-bg);
  color: var(--color-text-apple);      /* Apple text color */
}
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*{
    font-family: "Raleway", sans-serif;
}
/* .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
} */
form {
  display: flex;
  flex-direction: column;
  width: 725px; /* 1200px for other form? Adjusted for 25% larger size */
  margin: 10px 0;
}
label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-text-apple);
}
/* input[type="text"] {
  padding: 10px;
  font-size: 16px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
} */
button {
  padding: 10px;
  font-size: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-alpha);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
}
button:hover {
  background-color: var(--color-surface-active);
  color: var(--color-text);
  box-shadow: var(--shadow-card-subtle);
}

#form-last {
  display: flex;
  flex-direction: column;
  width: 1200px; /* Adjusted for 25% larger size */
  margin: 10px 0;
}
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.form-group label {
  flex: 1;
}
.form-group input[type="text"] {
  flex: 2;
  margin-right: 10px;
}
.form-group input[type="checkbox"] {
  margin-left: 10px;
}

.container-last {
  /*To do: rename*/
  width: 50%; /* Reduce the width by 25% */
  float: left;
  box-sizing: border-box;
}

.container-images {
  width: 25%;
  float: left;
  padding-left: 20px;
  box-sizing: border-box;
}

.main-content {
  /* To do: Rename */
  display: flex;
}

.container h2 {
  margin-bottom: 15px;
}

.image-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.image-item input[type="checkbox"] {
  display: none;
}

.image-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 5px;
  border-radius: 4px;
}

.image-item img {
  width: 50px; /* Set the size of the image */
  height: auto;
  margin-right: 10px;
}

.image-item p {
  margin: 0;
}

.image-item input[type="checkbox"]:checked + label {
  background-color: rgba(
    0,
    0,
    0,
    0.1
  ); /* Slight opaque background when selected */
}

#error-message {
  color: red;
  font-weight: bold;
  margin-bottom: 15px;
}

.form-control.error {
  border: 2px solid red;
}

.highlight-ai {
  border: 2px solid red;
  background-color: #ffe6e6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
               Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background-color: var(--color-bg-apple);
  background-color: var(--color-bg);
  margin: 0;
  color: var(--color-text-apple);
}

.app h1,
.app h2,
.app h3,
.app h4,
.app h5,
.app h6,
.app_inside h1,
.app_inside h2,
.app_inside h3,
.app_inside h4,
.app_inside h5,
.app_inside h6 {
  color: var(--bs-heading-color, var(--color-text));
}

.step {
  position: relative;
  margin-bottom: 50px;
  padding-left: 80px;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  margin-right: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: -63px;
}

.step h1 {
  font-size: 22px;
  margin: 0;
  color: #333;
}

.step::after {
  content: "";
  position: absolute;
  width: 2px;
  height: calc(100% + 20px);
  background-color: #ddd;
  left: 39px;
  top: 40px;
}

.step:last-child::after {
  display: none;
}

.grid {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.grid-item {
  position: relative;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  transition: border-color 0.3s;
  background: var(--color-surface);
  width: fit-content;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.grid-item img {
  border-radius: 4px;
  width: 144px;
  height: 144px;
  object-fit: cover;
}

.grid-item.selected {
  border-color: #28a745;
  border-width: 3px;
  border-style: solid;
}

.delete-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--color-surface);
  color: var(--color-text-mailmagic);
  border: 1px solid var(--color-border-alpha);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  width: 30px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.delete-button:hover {
  background: var(--color-surface-active);
}

button:hover {
  background: var(--color-surface-active);
}

/* input[type="file"] {
    display: none;
  } */

.color-picker {
  margin-top: 20px;
}

.color-picker label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

#backgroundGrid .grid-item img {
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

/* Style the color picker */
.color-picker {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker label {
  font-size: 16px;
}

#backgroundColor {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
label {
  color: var(--color-text);
}
#backgroundColor::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

#backgroundColor::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
/* Algemene stijl voor fancy knoppen */
#drop-area {
  width: 100%;
  max-width: 400px;
  padding: 25px;
  border: 2px dashed rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background: transparent;
}

#drop-area:hover {
  background: rgba(0, 0, 0, 0.05);
}

#drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

#drop-zone i {
  font-size: 42px;
  color: #444;
}

#drop-zone p {
  font-size: 14px;
  color: #222;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}

.fancy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid #ddd;
  background-color: white;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition:    background-color 0.3s, color 0.3s,   border-color 0.3s;
  gap: 10px;
}
.fancy-button.greenbtn{
      border: 1px solid green ! IMPORTANT;
    background: #6dffab30;
    color: #006a2c;
}
.fancy-button i {
  font-size: 18px;
}
.container.content {
  margin-top: 60px;
}

.fancy-button:hover {
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: white;
  border-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-move 1.5s linear infinite;
  border: 2px solid #ddd;
}

@keyframes rainbow-move {
  0% {
    background-position: 100% 50%; /* Begin aan de rechterkant */
  }
  100% {
    background-position: 0% 50%; /* Eindig aan de linkerkant */
  }
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  padding: 0px 03px;
  margin-top: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.switch-checkbox {
  display: none;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.4s;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.switch-checkbox:checked + .switch-slider {
  background-color: #4caf50;
}

.switch-checkbox:checked + .switch-slider::before {
  transform: translateX(28px);
}

/* Dynamic text color */
.test-label {
  color: black;
  font-weight: 400;
  transition: 0.3s;
}

.prod-label {
  color: grey;
  font-weight: 400;
  transition: 0.3s;
}

.switch-checkbox:checked ~ .test-label {
  color: grey;
}

.switch-checkbox:checked ~ .prod-label {
  color: black;
}

.test-label {
  color: green;
}
.fancy-button.redbtn {
    border: 1px solid #ff000066;
    font-size: 12px;
}
.fancy-button.redbtn:hover {
  color: black;
  border: 1px solid red !important;
}
.carbuttoncontainer {
  position: fixed;
  left: 30px;
  max-width: 280px;
}
.carbuttoncontainer button {
  font-size: 14px;
}
.checkmarkwrap {
  margin-left: 5px;
  margin-top: 15px;
}
.checkmarkwrap {
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    user-select: none;
    display: flex;
    align-items: base-line;
}

.checkmarkwrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-surface);
  border: 2px solid var(--color-button-primary-bg);
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-content: center;
}
.checkboxwrap input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.checkmarkwrap input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
  background-color: var(--color-button-primary-bg);
}
.checkboxwrap input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
}

.checkmarkwrap input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.checkmarkwrap input[type="checkbox"]:disabled, .checkmarkwrap input[type="checkbox"]:disabled  + label{
          opacity: 0.25;
}

.checkmarkwrap input[type="checkbox"] + label{
      opacity: 0.5;
}
.checkmarkwrap input[type="checkbox"]:checked + label{
      opacity: 1;
}
.fancylabel{
    font-weight:400;
    font-size:15px;
    line-height:15px;
}
.checkmarkwrap label {
  cursor: pointer;
}
.overlay, #infobox{
    display:none;
}
.overlay.show {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: left;
  justify-content: center;
  padding: 40px;
  transition: all 0.2s ease;
}

.overlaybox {
  background: var(--color-surface);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  text-align: center;
  display: none;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
     height: fit-content;
    margin: auto;
     transition:all 0.2s ease;
     width:fit-content;
}
.overlaybox.open {
     display:flex !important;
}
#loadingbox{
    background:none;
    color:white;
    box-shadow: none;
}
#loadingbox i {
    font-size: 41px;
    margin-bottom: 20px;
}
#loadingbox #duurtlang{
    font-size: 26px;
    width:100%;
}
.overlay-btn {
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.overlay-btn.danger {
  background: #c0392b;
  color: white;
}

.overlay-btn.safe {
  background: #2ecc71;
  color: white;
}

.overlay-btn:hover {
  opacity: 0.9;
}

.overlay .close-btn {
  position: absolute;
  top: 30px;
    right: 45px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}
#carDetailsForm svg{

    fill :#638358;
}

.spinnerloading{
    display:none !important;
}
body .loadingbtn .spinnerloading{
    display:block !important;
}
#duurtlang {
  display: inline-block;
  opacity: 0;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
  color: var(--color-text-on-dark);
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  transition: opacity 0.8s ease-in-out;
}
#loadingboxspinner {
  font-size: 3rem;
  display: inline-block;
  animation: rainbowSpin 1s linear infinite, gradientShift 5s linear infinite;
  background: linear-gradient(270deg, red, orange, yellow, lime, cyan, blue, violet, red);
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes rainbowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% }
  100% { background-position: 100% }
}
.nav-item{
 padding-left: 10px;
    font-size: 19px;
    font-weight: 300;
  }
.nav-item .nav-link{
  padding: 0px 0px;
  }
.nav-item.active .nav-link{
    border-bottom: 2px solid;
     padding: 0px 0px;
}
.sortable-item{
    margin-bottom:5px;
}
.navbar-brand{
    font-size: 24px;
    font-weight: 600;
    margin-right: 30px;
    padding: 0px;
    margin: 0px;
    margin-right: 30px;
    margin-bottom: 3px;
    margin-left: 30px;
}
body .navbar{
  flex-wrap: nowrap;
    justify-content: flex-start;
    min-height: 80px;
    background-color: var(--color-surface) !important;
}
/* Admin sidebar + cards */
.sidebar{ border-right: 1px solid var(--color-border-alpha); }
.sidebar .nav-link{ color:var(--color-text-apple); }
.sidebar .nav-link.active{ font-weight:600; }
.card{ border:1px solid var(--color-border-alpha); border-radius:14px; }
.card .card-title{ font-weight:700; }
.alert{ border-radius:12px; }

  .switch-container {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: Arial, sans-serif;
            font-weight: bold;
            padding:0px 03px;
            margin-left:-14px;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
            padding-bottom:0px;
            margin-bottom: 0px;
        }

        .switch-checkbox {
            display: none;
        }

        .switch-slider {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            border-radius: 30px;
            cursor: pointer;
            transition: 0.4s;
        }

        .switch-slider::before {
            content: "";
            position: absolute;
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            border-radius: 50%;
            transition: 0.4s;
        }

        .switch-checkbox:checked + .switch-slider {
            background-color: #ff0000;
        }

        .switch-checkbox:checked + .switch-slider::before {
            transform: translateX(28px);
        }

        /* Dynamic text color */
        .test-label {
            color: black;
            font-weight:400;
            transition: 0.3s;
        }

        .prod-label {
            color: grey;
            font-weight:400;
            transition: 0.3s;
        }

        .switch-checkbox:checked ~ .test-label {
            color: grey;
        }

        .switch-checkbox:checked ~ .prod-label {
            color: black;
        }
.radio-container {
        display: flex;
        gap: 15px;
        align-items: left;
        margin-bottom: 15px;
        flex-direction: column;
    }
    .radio-container label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 14px;
        color: var(--color-text);
    }
    .radio-container input[type="radio"] {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid var(--color-button-primary-bg);
        border-radius: 50%;
        display: inline-block;
        position: relative;
    }
    .radio-container input[type="radio"]:checked::before {
        content: "";
        width: 10px;
        height: 10px;
        background: var(--color-button-primary-bg);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

@media (max-width: 1700px){
    .carbuttoncontainer {
        display: block;
        position: relative;
        left: 0px;
        margin-bottom: 30px;
        border-bottom: 1px dashed #c3c3c3;
        padding-bottom: 15px;
        width: 100%;
        max-width: 100%;
    }

}
.btn-danger{
  width: fit-content;
}

/* login page */
.login-section form{
  width: 100%;
}
.login-section .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    flex-direction: column;
    align-items: baseline;
}
.login-section .input-wrapper {
    position: relative;
    width: 100%;
}
 /* Mail Magic specific styles */
 .mailmagic-hero {
  background: linear-gradient(135deg, var(--color-brand-legacy) 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 40px 40px;
  color: white;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mailmagic-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.mailmagic-hero .user-email {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.95;
}

.mailmagic-container {
  max-width: 1400px;
  margin: 0 auto;
}

.mailmagic-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 980px) {
  .mailmagic-grid {
    grid-template-columns: 1fr;
  }
}

.mail-sidebar {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.mail-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px;
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-item:hover {
  background: var(--color-bg-apple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mail-item.active {
  background: linear-gradient(135deg, var(--color-brand-legacy-wash) 0%, var(--color-brand-purple-wash) 100%);
  border-color: var(--color-brand-legacy);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.mail-item .t {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-apple);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item .s {
  font-size: 13px;
  color: var(--color-muted-apple);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-content-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mail-viewer-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mail-subject {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-apple);
  margin-bottom: 8px;
}

.mail-meta {
  font-size: 14px;
  color: var(--color-muted-apple);
}

.mail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mail-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-bg-apple);
  color: var(--color-muted-apple);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-tab:hover {
  background: var(--color-surface-disabled);
}

.mail-tab.active {
  background: var(--color-text-apple);
  color: white;
}

.mail-preview {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
  background: var(--color-surface-subtle);
  overflow: auto;
  max-height: 60vh;
}

.prediction-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.prediction-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-apple);
}

.prediction-title i {
  font-size: 24px;
  color: var(--color-brand-legacy);
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .prediction-grid {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--color-bg-apple);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.info-label {
  font-size: 12px;
  color: var(--color-muted-apple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.info-value {
  font-size: 16px;
  color: var(--color-text-apple);
  font-weight: 500;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-apple);
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-surface-disabled);
  border-radius: 10px;
  font-size: 15px;
  background: var(--color-surface);
  transition: all 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--color-brand-legacy);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.detection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #43e97b15 0%, #38f9d715 100%);
  color: #059669;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #43e97b40;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: space-between;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid var(--color-surface-disabled);
  border-radius: 10px;
  font-size: 14px;
  background: var(--color-surface);
  transition: all 0.2s ease;
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-brand-legacy);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.table-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 40px;
}

.table-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-apple);
  margin-bottom: 24px;
}

.table-title i {
  font-size: 24px;
  color: var(--color-brand-legacy);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background: var(--color-bg-apple);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted-apple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.data-table th:first-child {
  border-top-left-radius: 10px;
}

.data-table th:last-child {
  border-top-right-radius: 10px;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--color-text-apple);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--color-surface-subtle);
}

.auth-prompt {
  text-align: center;
  padding: 80px 40px;
}

.auth-prompt h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text-apple);
  margin-bottom: 16px;
}

.auth-prompt p {
  font-size: 18px;
  color: var(--color-muted-apple);
  margin-bottom: 32px;
}

/* Loading Spinner Styles */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-surface-disabled);
  border-top-color: var(--color-brand-legacy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-apple);
  text-align: center;
  max-width: 80%;
}

.field-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  font-size: 12px;
}

.field-status.loading {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-surface-disabled);
  border-top-color: var(--color-brand-legacy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.field-status.success {
  color: #059669;
}

.field-status.error {
  color: var(--color-danger);
}

.mail-sidebar, .mail-viewer-card, .prediction-card {
  position: relative;
}
.inputwrapski {
   display: flex;    
   position: relative;
   width: 100%;
}
.inputwrapski i {
  color: var(--color-brand-legacy);font-size: 20px;position: absolute;left: 0px;top: 10px;left: 10px;
}
.inputwrapski input {
    padding-left: 40px;
}

button.reject , button.accept, button.ghost, .btn-dark , .btn-light ,.btn-primary{
  letter-spacing: 1px !important;
  font-family: monospace !important;
  border-radius: 8px !important;
}
 
/* body button , body .btn {
  border-radius: 8px !important;
} */

.btn-dark{
  width: 100%;
  background: var(--color-button-primary-bg);
  color: var(--color-button-primary-text) !important;
  border: 1px solid var(--color-button-primary-bg);
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: fit-content !important;
  border-radius: 25px !important;
  letter-spacing: 1px;
  font-family: 'Raleway' !important;
  letter-spacing: 1px !IMPORTANT;
}

.btn-dark:hover{
  background:var(--color-button-primary-hover) !important;
}
.dashboard-container .stat-card .btn-dark{
  width:100%;
  text-decoration: none;
  display: flex;
  position: absolute;
  bottom: 27px;
  align-items: center;
}
.btn-dark i{
  margin-left: 10px;
}
.dashboard-container .stat-card{
  min-height: 334px;
  position: relative;
}
