/* MSP 2.0 - Tailwind ergänzende Styles */
body {
    font-family: Arial, sans-serif;
}

#main-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#main-table th {
    background: #34495e;
    color: white;
    padding: 8px 4px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.05em;
}

#main-table td {
    padding: 4px;
    border-bottom: 1px solid #ecf0f1;
    border-right: 1px solid #ecf0f1;
    white-space: pre-line;
    font-size: 0.85em;
    vertical-align: top;
}

.responsible-cell {
    white-space: pre-line;
}

.bemerkung-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.comment-view-btn,
.comment-add-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.comment-view-btn:hover,
.comment-add-btn:hover {
    background: #f0f0f0;
}

.comment-count {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

.gate-row {
    background: #1576BB;
    color: #000000;
    font-weight: bold;
    font-size: 0.9em;
}

.milestone-row {
    background: #27ae60;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.milestone-row td { padding-left: 16px; }

.deliverable-row {
    background: #EA9C66;
    color: #000000;
    font-size: 0.9em;
}

.deliverable-row td { padding-left: 32px; }

.criteria-row {
    background: #f8f9fa;
    font-size: 0.8em;
}

.criteria-row td { padding-left: 48px; }

/* Status-basierte Zeilenfärbung für Kriterien */
tr.status-na,
.criteria-row.status-na,
tr.deliverable-na {
    background: #e0e0e0 !important;
    color: #999;
}

tr.status-fulfilled,
.criteria-row.status-fulfilled {
    background: #e8f5e9 !important;
}

/* From Uiverse.io by mrpumps31232 - Animated Checkbox (adapted for table cells) */
.checkbox {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 100%;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.checkbox-circle {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #aaa;
  transition: all 0.3s;
  flex-shrink: 0;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-circle {
  background: #4CAF50;
  border-color: #4CAF50;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: all 0.3s;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-circle .checkmark {
  opacity: 1;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  transition: stroke-dashoffset 0.3s;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-circle .checkmark-circle {
  stroke-dashoffset: 0;
}

.checkmark-kick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.3s;
}

.checkbox input[type="checkbox"]:checked ~ .checkbox-circle .checkmark-kick {
  stroke-dashoffset: 0;
}

.collapse-icon { margin-right: 5px; font-size: 10px; }

/* Gate-Gruppe Umrandung für geöffnete Gates - using box-shadow for rounded corners */
/* Alle Zeilen in einem geöffneten Gate: linke und rechte Umrandung */
tr[data-type="gate"]:not(.collapsed-gate) td:nth-child(3),
tr[data-parent]:not([data-type="gate"]) td:nth-child(3) {
  position: relative;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Box-shadow Umrandung für alle Zeilen */
tr[data-type="gate"]:not(.collapsed-gate) td:nth-child(3)::before,
tr[data-parent]:not([data-type="gate"]) td:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-left: 2px solid #ef4444;
  border-right: 2px solid #ef4444;
  pointer-events: none;
  z-index: 1;
}

/* Erste Zeile (Gate selbst) - obere Umrandung mit oberen abgerundeten Ecken */
tr[data-type="gate"]:not(.collapsed-gate) td:nth-child(3)::before {
  border-top: 2px solid #ef4444;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Letzte Zeile der Gruppe - untere Umrandung mit unteren abgerundeten Ecken */
tr.last-in-gate-group td:nth-child(3)::before {
  border-bottom: 2px solid #ef4444;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Gate selbst wenn es auch die letzte Zeile ist (keine Meilensteine) */
tr[data-type="gate"]:not(.collapsed-gate).last-in-gate-group td:nth-child(3)::before {
  border-radius: 6px;
}

/* Meilenstein-Gruppe Umrandung für geöffnete Meilensteine - starkes Blau */
/* Inset innerhalb der roten Gate-Umrandung (4px Abstand) */
tr[data-type="milestone"]:not(.collapsed-milestone) td:nth-child(3),
tr[data-parent][data-type="deliverable"] td:nth-child(3),
tr[data-parent][data-type="criteria"] td:nth-child(3) {
  position: relative;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Box-shadow Umrandung für alle Meilenstein-Zeilen - mit Inset */
tr[data-type="milestone"]:not(.collapsed-milestone) td:nth-child(3)::after,
tr[data-parent][data-type="deliverable"] td:nth-child(3)::after,
tr[data-parent][data-type="criteria"] td:nth-child(3)::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 0;
  border-left: 2px solid #2563eb;
  border-right: 2px solid #2563eb;
  pointer-events: none;
  z-index: 0;
}

/* Erste Zeile (Meilenstein selbst) - obere Umrandung mit oberen abgerundeten Ecken */
tr[data-type="milestone"]:not(.collapsed-milestone) td:nth-child(3)::after {
  border-top: 2px solid #2563eb;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* Letzte Zeile der Meilenstein-Gruppe - untere Umrandung mit unteren abgerundeten Ecken */
tr.last-in-milestone-group td:nth-child(3)::after {
  border-bottom: 2px solid #2563eb;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  bottom: 4px;
}

/* Meilenstein selbst wenn es auch die letzte Zeile ist (keine Deliverables) */
tr[data-type="milestone"]:not(.collapsed-milestone).last-in-milestone-group td:nth-child(3)::after {
  border-radius: 4px;
  bottom: 4px;
}


.progress-bar {
    width: 70px;
    height: 12px;
    background: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #27ae60;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: bold;
    color: #2c3e50;
}

select,
input {
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 10px;
}

.resp-select { width: 100px; }
.date-input { width: 100px; }
.status-select { width: 90px; }

.add-btn,
.del-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.add-btn:hover,
.del-btn:hover {
    background: #f0f0f0;
}

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

.comment-modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
    background: #34495e;
    color: white;
    border-radius: 8px 8px 0 0;
}

.comment-modal-body { padding: 20px; max-height: 500px; overflow-y: auto; }

.comment-list { margin-bottom: 20px; max-height: 300px; overflow-y: auto; }

.no-comments { text-align: center; color: #7f8c8d; font-style: italic; padding: 20px; }

.comment-item {
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

.comment-text { margin-top: 8px; font-size: 12px; }

.comment-label-select { padding: 6px; border-radius: 4px; }

.form-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.form-message { font-size: 12px; }
.form-message.error { color: #e74c3c; }
.form-message.success { color: #27ae60; }

.comment-count { margin-left: 6px; }

/* From Uiverse.io by ke1221 */
button {
  color: #090909;
  padding: 0.7em 1.7em;
  font-size: 18px;
  border-radius: 0.5em;
  background: #e8e8e8;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

button:active {
  color: #666;
  box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

/* Benutzerverwaltung Tabelle */
.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.users-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.users-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th:last-child {
  border-right: none;
}

.users-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

.users-table tbody tr:hover {
  background-color: #f9fafb;
}

.users-table tbody tr:last-child {
  border-bottom: none;
}

.users-table td {
  padding: 12px 16px;
  border-right: 1px solid #e5e7eb;
  vertical-align: middle;
}

.users-table td:last-child {
  border-right: none;
}

.user-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.user-status.active {
  background: #d1fae5;
  color: #065f46;
}

.user-status.locked {
  background: #fee2e2;
  color: #991b1b;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-actions button {
  font-size: 10px !important;
  padding: 6px 10px !important;
  white-space: nowrap;
}

/* From Uiverse.io by Admin12121 - Loader */
.loader {
  --duration: 3s;
  --primary: rgba(39, 94, 254, 1);
  --primary-light: #2f71ff;
  --primary-rgba: rgba(39, 94, 254, 0);
  width: 200px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
}

@media (max-width: 480px) {
  .loader {
    zoom: 0.44;
  }
}

.loader:before, .loader:after {
  --r: 20.5deg;
  content: "";
  width: 320px;
  height: 140px;
  position: absolute;
  right: 32%;
  bottom: -11px;
  background: #ffffff;
  transform: translateZ(200px) rotate(var(--r));
  -webkit-animation: mask var(--duration) linear forwards infinite;
  animation: mask var(--duration) linear forwards infinite;
}

.loader:after {
  --r: -20.5deg;
  right: auto;
  left: 32%;
}

.loader .ground {
  position: absolute;
  left: -50px;
  bottom: -120px;
  transform-style: preserve-3d;
  transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
}

.loader .ground div {
  transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(0);
  width: 200px;
  height: 200px;
  background: var(--primary);
  background: linear-gradient(45deg, var(--primary) 0%, var(--primary) 50%, var(--primary-light) 50%, var(--primary-light) 100%);
  transform-style: preserve-3d;
  -webkit-animation: ground var(--duration) linear forwards infinite;
  animation: ground var(--duration) linear forwards infinite;
}

.loader .ground div:before, .loader .ground div:after {
  --rx: 90deg;
  --ry: 0deg;
  --x: 44px;
  --y: 162px;
  --z: -50px;
  content: "";
  width: 156px;
  height: 300px;
  opacity: 0;
  background: linear-gradient(var(--primary), var(--primary-rgba));
  position: absolute;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translate(var(--x), var(--y)) translateZ(var(--z));
  -webkit-animation: ground-shine var(--duration) linear forwards infinite;
  animation: ground-shine var(--duration) linear forwards infinite;
}

.loader .ground div:after {
  --rx: 90deg;
  --ry: 90deg;
  --x: 0;
  --y: 177px;
  --z: 150px;
}

.loader .box {
  --x: 0;
  --y: 0;
  position: absolute;
  -webkit-animation: var(--duration) linear forwards infinite;
  animation: var(--duration) linear forwards infinite;
  transform: translate(var(--x), var(--y));
}

.loader .box div {
  background-color: var(--primary);
  width: 48px;
  height: 48px;
  position: relative;
  transform-style: preserve-3d;
  -webkit-animation: var(--duration) ease forwards infinite;
  animation: var(--duration) ease forwards infinite;
  transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
}

.loader .box div:before, .loader .box div:after {
  --rx: 90deg;
  --ry: 0deg;
  --z: 24px;
  --y: -24px;
  --x: 0;
  content: "";
  position: absolute;
  background-color: inherit;
  width: inherit;
  height: inherit;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translate(var(--x), var(--y)) translateZ(var(--z));
  filter: brightness(var(--b, 1.2));
}

.loader .box div:after {
  --rx: 0deg;
  --ry: 90deg;
  --x: 24px;
  --y: 0;
  --b: 1.4;
}

.loader .box.box0 {
  --x: -220px;
  --y: -120px;
  left: 58px;
  top: 108px;
}

.loader .box.box1 {
  --x: -260px;
  --y: 120px;
  left: 25px;
  top: 120px;
}

.loader .box.box2 {
  --x: 120px;
  --y: -190px;
  left: 58px;
  top: 64px;
}

.loader .box.box3 {
  --x: 280px;
  --y: -40px;
  left: 91px;
  top: 120px;
}

.loader .box.box4 {
  --x: 60px;
  --y: 200px;
  left: 58px;
  top: 132px;
}

.loader .box.box5 {
  --x: -220px;
  --y: -120px;
  left: 25px;
  top: 76px;
}

.loader .box.box6 {
  --x: -260px;
  --y: 120px;
  left: 91px;
  top: 76px;
}

.loader .box.box7 {
  --x: -240px;
  --y: 200px;
  left: 58px;
  top: 87px;
}

.loader .box0 {
  -webkit-animation-name: box-move0;
  animation-name: box-move0;
}

.loader .box0 div {
  -webkit-animation-name: box-scale0;
  animation-name: box-scale0;
}

.loader .box1 {
  -webkit-animation-name: box-move1;
  animation-name: box-move1;
}

.loader .box1 div {
  -webkit-animation-name: box-scale1;
  animation-name: box-scale1;
}

.loader .box2 {
  -webkit-animation-name: box-move2;
  animation-name: box-move2;
}

.loader .box2 div {
  -webkit-animation-name: box-scale2;
  animation-name: box-scale2;
}

.loader .box3 {
  -webkit-animation-name: box-move3;
  animation-name: box-move3;
}

.loader .box3 div {
  -webkit-animation-name: box-scale3;
  animation-name: box-scale3;
}

.loader .box4 {
  -webkit-animation-name: box-move4;
  animation-name: box-move4;
}

.loader .box4 div {
  -webkit-animation-name: box-scale4;
  animation-name: box-scale4;
}

.loader .box5 {
  -webkit-animation-name: box-move5;
  animation-name: box-move5;
}

.loader .box5 div {
  -webkit-animation-name: box-scale5;
  animation-name: box-scale5;
}

.loader .box6 {
  -webkit-animation-name: box-move6;
  animation-name: box-move6;
}

.loader .box6 div {
  -webkit-animation-name: box-scale6;
  animation-name: box-scale6;
}

.loader .box7 {
  -webkit-animation-name: box-move7;
  animation-name: box-move7;
}

.loader .box7 div {
  -webkit-animation-name: box-scale7;
  animation-name: box-scale7;
}

@-webkit-keyframes box-move0 {
  12% {
    transform: translate(var(--x), var(--y));
  }

  25%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move0 {
  12% {
    transform: translate(var(--x), var(--y));
  }

  25%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale0 {
  6% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  14%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale0 {
  6% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  14%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move1 {
  16% {
    transform: translate(var(--x), var(--y));
  }

  29%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move1 {
  16% {
    transform: translate(var(--x), var(--y));
  }

  29%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale1 {
  10% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  18%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale1 {
  10% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  18%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move2 {
  20% {
    transform: translate(var(--x), var(--y));
  }

  33%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move2 {
  20% {
    transform: translate(var(--x), var(--y));
  }

  33%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale2 {
  14% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  22%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale2 {
  14% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  22%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move3 {
  24% {
    transform: translate(var(--x), var(--y));
  }

  37%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move3 {
  24% {
    transform: translate(var(--x), var(--y));
  }

  37%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale3 {
  18% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  26%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale3 {
  18% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  26%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move4 {
  28% {
    transform: translate(var(--x), var(--y));
  }

  41%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move4 {
  28% {
    transform: translate(var(--x), var(--y));
  }

  41%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale4 {
  22% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  30%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale4 {
  22% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  30%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move5 {
  32% {
    transform: translate(var(--x), var(--y));
  }

  45%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move5 {
  32% {
    transform: translate(var(--x), var(--y));
  }

  45%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale5 {
  26% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  34%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale5 {
  26% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  34%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move6 {
  36% {
    transform: translate(var(--x), var(--y));
  }

  49%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move6 {
  36% {
    transform: translate(var(--x), var(--y));
  }

  49%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale6 {
  30% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  38%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale6 {
  30% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  38%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes box-move7 {
  40% {
    transform: translate(var(--x), var(--y));
  }

  53%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@keyframes box-move7 {
  40% {
    transform: translate(var(--x), var(--y));
  }

  53%, 52% {
    transform: translate(0, 0);
  }

  80% {
    transform: translate(0, -32px);
  }

  90%, 100% {
    transform: translate(0, 188px);
  }
}

@-webkit-keyframes box-scale7 {
  34% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  42%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@keyframes box-scale7 {
  34% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0);
  }

  42%, 100% {
    transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1);
  }
}

@-webkit-keyframes ground {
  0%, 65% {
    transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(0);
  }

  75%, 90% {
    transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(1);
  }

  100% {
    transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(0);
  }
}

@keyframes ground {
  0%, 65% {
    transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(0);
  }

  75%, 90% {
    transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(1);
  }

  100% {
    transform: rotateX(90deg) rotateY(0deg) translate(-48px, -120px) translateZ(100px) scale(0);
  }
}

@-webkit-keyframes ground-shine {
  0%, 70% {
    opacity: 0;
  }

  75%, 87% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
  }
}

@keyframes ground-shine {
  0%, 70% {
    opacity: 0;
  }

  75%, 87% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
  }
}

@-webkit-keyframes mask {
  0%, 65% {
    opacity: 0;
  }

  66%, 100% {
    opacity: 1;
  }
}

@keyframes mask {
  0%, 65% {
    opacity: 0;
  }

  66%, 100% {
    opacity: 1;
  }
}

/* Loading Screen Container */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-screen.active {
  display: flex;
}

/* Logo Splash Screen */
#logo-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#logo-splash.active {
  display: flex;
}

#logo-splash img {
  max-width: 80%;
  max-height: 80vh;
  animation: logoFadeIn 0.5s ease-in-out;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* From Uiverse.io by Harsha2lucky - Login Form Neumorphism */
.login-content {
  width: 330px;
  padding: 40px 30px;
  background: #e8e8e8;
  border-radius: 10px;
  box-shadow: -3px -3px 7px #ffffff73,
               2px 2px 5px rgba(94,104,121,0.288);
}

.login-content .text {
  font-size: 33px;
  font-weight: 600;
  margin-bottom: 35px;
  color: #595959;
  text-align: center;
}

.login-field {
  height: 50px;
  width: 100%;
  display: flex;
  position: relative;
}

.login-field:nth-child(2) {
  margin-top: 20px;
}

.login-field .input {
  height: 100%;
  width: 100%;
  padding-left: 45px;
  outline: none;
  border: none;
  font-size: 18px;
  background: #e8e8e8;
  color: #595959;
  border-radius: 25px;
  box-shadow: inset 2px 2px 5px #BABECC,
              inset -5px -5px 10px #ffffff73;
}

.login-field .input:focus {
  box-shadow: inset 1px 1px 2px #BABECC,
              inset -1px -1px 2px #ffffff73;
}

.login-field .span {
  position: absolute;
  color: #595959;
  width: 50px;
  line-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-field .label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 45px;
  pointer-events: none;
  color: #666666;
  transition: opacity 0.3s;
}

.login-field .input:focus ~ label,
.login-field .input:not(:placeholder-shown) ~ label {
  opacity: 0;
}

.login-button {
  margin: 15px 0;
  width: 100%;
  height: 50px;
  font-size: 18px;
  line-height: 50px;
  font-weight: 600;
  background: #e8e8e8;
  border-radius: 25px;
  border: none;
  outline: none;
  cursor: pointer;
  color: #595959;
  box-shadow: 2px 2px 5px #BABECC,
             -5px -5px 10px #ffffff73;
  transition: all 0.3s;
}

.login-button:hover {
  color: #3498db;
}

.login-button:active,
.login-button:focus {
  color: #3498db;
  box-shadow: inset 2px 2px 5px #BABECC,
             inset -5px -5px 10px #ffffff73;
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-footer {
  margin: 10px 0;
  color: #595959;
  font-size: 12px;
  text-align: center;
}

.login-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

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

#error-message {
  margin-bottom: 20px;
  padding: 12px;
  background: #ffebee;
  border: 1px solid #ef5350;
  border-radius: 25px;
  color: #c62828;
  font-size: 14px;
  text-align: center;
  box-shadow: inset 2px 2px 5px rgba(239, 83, 80, 0.1);
}

/* Expandable Card Navigation */
.card-nav-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 99;
  top: 1.2rem;
}

@media (min-width: 768px) {
  .card-nav-container {
    top: 2rem;
  }
}

.card-nav {
  display: block;
  height: 60px;
  padding: 0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  transition: height 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.card-nav.open {
  height: auto;
  min-height: 260px;
}

.card-nav-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  padding-left: 1.1rem;
  z-index: 2;
  background: inherit;
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  cursor: pointer;
  padding: 0.5rem;
  order: 0;
  color: #000;
  transition: opacity 0.2s;
}

.hamburger-menu:hover {
  opacity: 0.75;
}

.user-info-collapsed {
  order: 2;
}

@media (min-width: 768px) {
  .user-info-collapsed {
    order: 0;
  }
}

.hamburger-line {
  width: 30px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.logo-container {
  display: flex;
  align-items: center;
  order: 1;
}

@media (min-width: 768px) {
  .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    order: 0;
  }
}

.logo-container img {
  height: 28px;
}

.card-nav-cta-button {
  display: none;
  border: none;
  border-radius: calc(0.75rem - 0.2rem);
  padding: 0 1rem;
  height: 100%;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  background: #667eea;
  color: white;
}

@media (min-width: 768px) {
  .card-nav-cta-button {
    display: inline-flex;
    align-items: center;
  }
}

.card-nav-cta-button:hover {
  background: #5568d3;
}

.card-nav-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  justify-content: flex-start;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-nav.open .card-nav-content {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .card-nav-content {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
  }
}

.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 12px 16px;
  border-radius: calc(0.75rem - 0.2rem);
  min-width: 0;
  flex: 1 1 auto;
  height: auto;
  min-height: 60px;
  user-select: none;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000),
              opacity 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.card-nav.open .nav-card {
  transform: translateY(0);
  opacity: 1;
}

.card-nav.open .nav-card:nth-child(1) {
  transition-delay: 0.05s;
}

.card-nav.open .nav-card:nth-child(2) {
  transition-delay: 0.13s;
}

.card-nav.open .nav-card:nth-child(3) {
  transition-delay: 0.21s;
}

@media (min-width: 768px) {
  .nav-card {
    height: 100%;
    min-height: 0;
    flex: 1 1 0%;
  }
}

.nav-card-label {
  font-weight: 400;
  letter-spacing: -0.5px;
  font-size: 18px;
}

@media (min-width: 768px) {
  .nav-card-label {
    font-size: 22px;
  }
}

.nav-card-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
  font-size: 15px;
  color: inherit;
}

@media (min-width: 768px) {
  .nav-card-link {
    font-size: 16px;
  }
}

.nav-card-link:hover {
  opacity: 0.75;
}

.nav-card-link-icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

/* Highlight animation for scrolled-to elements */
.highlight-row {
  animation: highlight-flash 2s ease-in-out;
}

@keyframes highlight-flash {
  0% {
    background-color: inherit;
  }
  20% {
    background-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
  }
  80% {
    background-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
  }
  100% {
    background-color: inherit;
    box-shadow: none;
  }
}

