body {
  background-color: #f4f6f8;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

.logo {
  filter: invert(1);
  /* 1 = 100% inversion */
  mix-blend-mode: screen;
  /* improves against dark backgrounds */

}

/* Header */
.app-header {
  background: #1976d2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.app-header img {
  height: 40px;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 500;
}


.app-icon {
  width: 100px;
  /* adjust size */
  height: 100px;
  object-fit: contain;
  /* keeps aspect ratio */
  /* margin-right: 8px; */
  /* spacing */
}


/* Vehicle image */
.vehicle-image {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vehicle-image img {
  max-width: 90%;
  height: auto;
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}


.info-table table {
  width: 70%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.info-table th,
.info-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.info-table th {
  background: #1976d2;
  color: #fff;
}




/* Main content layout */

.main-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1rem;
  max-width: 1400px;
  margin: auto;
  flex-wrap: wrap;
  /* Allows wrapping on smaller screens */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
  }

  .vehicle-section img {
    max-width: 90%;
    margin: 1rem 0;
  }

  .info-table {
    width: 100%;
    margin-top: 1rem;
  }
}

/* App grid */
.app-container {
  flex: 1 1 65%;
  /* Flexible width */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}


.app-card {
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.app-icon {
  font-size: 48px;
  color: #1976d2;
  margin-bottom: 0.5rem;
}

.app-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

/* Output box */
#output {

  height: 300px;
  /* Fixed height */
  overflow-y: auto;
  /* Scrollable */

  white-space: pre-wrap;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 1000px;
  font-family: monospace;
  color: #212121;
}

/* Spinner overlay */
#spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner-border {
  width: 4rem;
  height: 4rem;
  color: #1976d2;
}

.card-spinner {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
}

.app-card {
  position: relative;
  /* Needed for absolute positioning of spinner */
}



.app-meta {
  font-size: 0.6rem;
  /* smaller font */
  color: #555;
  text-align: left;
  /* align to left */
  line-height: 1.2;
  /* tighter spacing */
  width: 100%;
  /* span full width */
  margin-top: auto;
  /* push to bottom */
  padding-top: 1.4rem;
  /* small gap from content */

}


.app-meta span {
  display: block;
  /* each metadata on its own line */
  margin: 0;
  /* remove extra spacing */
}

.app-header-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 30px;
}


.app-status { margin-top: .5rem; display:flex; align-items:center; gap:.5rem; }
.status-badge { padding: .2rem .5rem; border-radius: .5rem; font-size: .8rem; }
.badge-idle { background: #e9ecef; color:#495057; }
.badge-inprogress { background: #fff3cd; color:#8a6d3b; }
.badge-deployed { background: #d1e7dd; color:#0f5132; }
.badge-failed { background: #f8d7da; color:#842029; }
.progress { width: 120px; height:6px; background:#eee; border-radius:4px; overflow:hidden; }
.progress-bar { background:#0d6efd; height:100%; transition: width .3s ease; }
