* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

/* Login Modal Styles */
/* Existing Styles kept as is */
.modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  margin: 10% auto;
  padding: 0;
  max-width: 90%; /* Set the maximum width to 90% of the parent */
  width: 380px; /* Set the default width */
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(20px);
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 80%; /* Increase the width on smaller screens */
    margin: 15% auto; /* Adjust the margin on smaller screens */
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 90%; /* Increase the width on very small screens */
    margin: 20% auto; /* Adjust the margin on very small screens */
  }
}

@media (max-width: 320px) {
  .modal-content {
    width: 95%; /* Increase the width on extremely small screens */
    margin: 25% auto; /* Adjust the margin on extremely small screens */
  }
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

/* ✅ Make modal responsive for tablets and phones */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 15% auto;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    margin: 20% auto;
    border-radius: 10px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.8rem;
  }

  .input-group input {
    padding: 12px 12px 12px 40px;
    font-size: 0.95rem;
  }

  .input-group label {
    font-size: 0.85rem;
  }

  .login-btn {
    font-size: 0.95rem;
    padding: 12px;
  }
}

/* Keep existing styles for other components */
.modal-header {
  padding: 30px 30px 15px;
  background: linear-gradient(135deg, #43dec0 0%, #1a5a40 100%);
  color: white;
  text-align: center;
}

.modal-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-subtitle {
  margin: 8px 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
  font-weight: 400;
}

.modal-body {
  padding: 25px 30px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group2 {
  position: static;
  margin-bottom: 10px;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.input-group input:focus {
  border-color: #a777e3;
  box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.2);
  outline: none;
  background-color: white;
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 45px;
  color: #6c757d;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -10px;
  left: 35px;
  font-size: 0.8rem;
  background: white;
  padding: 0 5px;
  color: #a777e3;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #6c757d;
  font-size: 1.1rem;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #43dec0 0%, #1a5a40 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
}

/* login model end */

.lamination-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.close-results-btn {
  font-size: 20px;
  padding: 6px 12px;
  max-width: 50px;
  flex-shrink: 0;
}

.input-group-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.input-group-4 input {
  padding: 5px;
  font-size: 14px;
  width: 160px;
  margin-top: 4px;
}

.capture-btn {
  padding: 8px 16px;
  font-size: 14px;
  flex-shrink: 0;
}


.test-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.start-test-button {
  flex: 1;
  max-width: 150px;
}

.input-group-3 {
  flex: 1;
  text-align: center;
}

.input-group-3 input {
  width: 80px;
  padding: 5px;
  font-size: 16px;
}

.close-results-btn {
  flex: 1;
  max-width: 50px;
  font-size: 20px;
  text-align: right;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-text {
  margin-right: 8px;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
  transform: translateX(3px);
}

.error {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 15px;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  background-color: rgba(231, 76, 60, 0.1);
}

.modal-footer {
  padding: 15px 30px 25px;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  border-top: 1px solid #e9ecef;
}

.signup-link {
  color: #6e8efb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.signup-link:hover {
  color: #a777e3;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
  }
  
  .modal-header {
    padding: 25px 20px 15px;
  }
  
  .modal-body {
    padding: 20px;
  }
}


/* Cards Container */
.cards-container {
  display: none;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cards-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #2c3e50;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}

.cards-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  margin: 15px auto 0;
  border-radius: 2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.card-description {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .card {
    padding: 25px 15px;
  }
  
  .card-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .cards-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

/* Main Page */
.main-page {
  display: none;
  width: 120%;
  min-height: 100vh;
  margin-left: 250px; /* Sidebar width */
}

.sidebar {
  width: 250px;
  background-color: #333;
  color: white;
  position: fixed;
  height: 100%;
  padding: 20px;
  left: 0; /* Ensure it stays on the left */
  top: 0; /* Ensure it stays at the top */
}

.sidebar-title {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
}
.sidebar-menu li {
  padding: 10px 0;
  border-bottom: 1px solid #444;
  cursor: pointer;
}
.sidebar-menu li:hover {
  background-color: #444;
}

/* Main content area */


.content {
  padding: 10px;
  height: 100vh;
  overflow-x: hidden;  /* Prevent horizontal scrolling */
  overflow-y: hidden;    /* Allow vertical scrolling */
}

.content-columns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* Content Area */
/*  */

/* Left Column - Content (50% width) */
.content-left {
  flex: 0 0 50%; /* Takes exactly 50% width */
  background: white;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden; /* No scrolling */
}

/* Right Column - Heatmap (50% width) */
.content-right {
  flex: 0 0 30%; /* Takes exactly 50% width */
  display: flex;
  flex-direction: column;
  overflow: auto; /* No scrolling */
  width: 100%;
  height: 100%;
}

#contentBody {
  flex: .5;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}
.content-title {
  margin-bottom: 5px;
  overflow-x: hidden; 
  /* padding-bottom: 4px; */
  /* border-bottom: 1px solid #ddd; */
}

.logout-btn {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 20px;
  padding: 10px;
  background-color: #e68a00;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #d32f2f;
}

@media (max-width: 768px) {
  .logout-btn {
    width: 89%;
    padding: 7px;
    font-size: 14px;
  }
}

/* Add these styles to your CSS */
.connection-buttons {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connect-btn, .disconnect-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.connect-btn {
  background-color: #4CAF50;
  color: white;
}

.connect-btn:hover {
  background-color: #45a049;
}

.disconnect-btn {
  background-color: #f44336;
  color: white;
}

.disconnect-btn:hover {
  background-color: #d32f2f;
}

/* Card Content Containers */
.board-test-container,
.sensor-test-container,
.lamination-test-container,
.asana-test-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.controls {
    margin-bottom: 20px;
}

.status-info {
    margin-top: auto; /* Push to bottom if content is short */
}

/* Heatmap Container */
.heatmap-container {
  /* width: 400px; */
  /* height: 600px; */
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  /* margin: 20px auto;  */
  margin-left: inherit;
  position: sticky;
  /* width: 100%; */
  height: auto; /* Adjust height for better responsiveness */
  max-height: unset; /* Set a maximum height */
  overflow: initial; /* Prevent overflow */
}


#heatmap {
  width: 100%;
  height: 100%;
}

.capture-button {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


.mat-id-display {
  margin-top: 10px;
  padding: 8px;
  background-color: #444;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  word-break: break-all; /* For long device names */
}


/* asana results starts */
.asana-results {
  margin-top: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: auto;
  max-height: 300px; /* Set a maximum height for the container */
}

.asana-results.hidden {
  display: none;
}

.test-results {
  margin-top: 10px;
  padding: 5px;
  background: #f8f9fa;
  border-radius: 5px;
}

.test-results h3 {
  margin-top: 0;
  color: #2c3e50;
}

.test-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.results-title {
  text-align: center;
  margin-bottom: 15px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive column layout */
  gap: 16px;
  justify-content: center;
}

/* Card Style */
.result-card {
  background: #f7f7f7;
  border-radius: 7px;
  padding: 15px;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.result-icon {
  font-size: 20px;
}

.result-icon.green {
  color: green;
}

.result-icon.yellow {
  color: orange;
}

.result-icon.red {
  color: red;
}

.results-actions {
  margin-top: 20px;
  text-align: center;
}

.save-btn,
.retry-btn {
  margin: 10px;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.save-btn {
  background-color: #28a745;
  color: white;
}

.retry-btn {
  background-color: #ffc107;
  color: black;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .test-results-grid {
    grid-template-columns: 1fr; /* Stack for tablets */
  }

  .results-grid {
    grid-template-columns: 1fr; /* Stack cards vertically on tablet */
  }
}

@media (max-width: 480px) {
  .save-btn,
  .retry-btn {
    width: 100%; /* Full width buttons for small screens */
    padding: 12px;
  }

  .result-card {
    padding: 12px;
  }

  .result-icon {
    font-size: 18px;
  }
}

/* asana results end */

.mini-heatmap {
    width: 100%;
    /* height: 200px; */
}


.test-meta-info {
  background: #f5f5f5;
  padding: 1px;
  border-radius: 5px;
  /* margin-bottom: 15px; */
}

.test-meta-info p {
  margin: 5px 0;
  font-size: 0.9em;
}

.test-meta-info strong {
  display: inline-block;
  width: 80px;
  color: #555;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}


/* .test-header {
  flex-wrap: wrap;
} */

.test-header h4 {
  font-size: 1.2rem;
  margin: 0;
}

.close-results-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #777;
  padding: 0 10px;
}

.close-results-btn:hover {
  color: #333;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.action-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.save-btn {
  background-color: #4CAF50; /* Green */
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.save-btn:hover {
  background-color: #45a049;
}

.save-btn:active {
  background-color: #3d8b40;
}

.save-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.sensor-test-setup {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.sensor-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.8em;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-item::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 2px;
}

.hidden {
  display: none !important;
}


.legend-item.faulty::before {
  background-color: #ff5252;
}

.legend-item.optimal::before {
  background-color: #66bb6a;
}

.legend-item.saturated::before {
  background-color: #ffab40;
}

.diagnostic-stats p {
  margin: 8px 0;
  padding: 5px;
  border-radius: 4px;
}

.diagnostic-stats .faulty {
  color: #ff5252;
  font-weight: bold;
}

.diagnostic-stats .optimal {
  color: #66bb6a;
  font-weight: bold;
}

.diagnostic-stats .saturated {
  color: #ffab40;
  font-weight: bold;
}

.lamination-test-setup {
  padding: 5px;
  background: #f8f9fa;
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.sensor-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sensor-label {
  flex-shrink: 0;
  font-size: 14px;
}

.sensor-input {
  padding: 6px;
  font-size: 14px;
  width: 100px;
  flex-grow: 1;
}

.capture-btn {
  padding: 8px 16px;
  font-size: 14px;
  flex-shrink: 0;
}

.close-results-btn {
  font-size: 20px;
  padding: 6px 12px;
  flex-shrink: 0;
}


.lamination-stats {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lamination-stats p {
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.lamination-stats .score {
  color: #4a6fa5;
  font-weight: bold;
  font-size: 1.1em;
}

.content-left {
  flex: 1;
}

/* .content-right {
  width: 400px;
} */

/* Asana Test Styles */
.asana-selection {
  margin-bottom: 20px;
}

.custom-select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-top: 10px;
}

.asana-image-container {
  margin: 20px 0;
  text-align: center;
}

.asana-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.asana-image.hidden {
  display: none;
}

.detect-button {
  background-color: #4a6fa5;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin: 10px 0;
  width: 100%;
}

.detect-button.hidden {
  display: none;
}

.detect-button:hover {
  background-color: #3a5a80;
}

/* Countdown Styles */
.countdown-container {
    text-align: center;
    margin: 20px 0;
}

.countdown-container.hidden {
  display: none;
  animation: none;
}

.countdown-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 111, 165, 0.7); }
    to { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(74, 111, 165, 0); }
}

.countdown-circle span {
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.countdown-container p {
    font-size: 18px;
    color: #555;
}

/* Main container */
.database-test-setup {
  font-family: 'Arial', sans-serif;
  margin: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 90vh; /* Set the height to 100% of the viewport */
  max-width: 60%; /* Reduce the maximum width */
  margin-right: 10px; /* Add some margin to the right */
  overflow-y: hidden; /* Add a vertical scrollbar if the content exceeds the height */
  display: flex;
  flex-direction: column;
}

.close-results-btn {
  background-color: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.close-results-btn:hover {
  color: #f00;
}

.loadMoreBtn{
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  position: static;

}

/* Dropdown container */
.input-group {
  margin-bottom: 20px;
}

.custom-select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  max-width: 250px;
}

/* File list display */
/* File list display */
.file-list {
  list-style: none;
  padding: 5px;
  max-height: 90vh; /* Adjust the height as needed */
  overflow-y: auto;  /* Allows vertical scrolling */
  margin-bottom: 10px;
}


.file-list li button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.file-list li button:hover {
  background-color: #45a049;
}

#databaseTestOutput {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 12px;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .database-test-setup {
    max-width: 80%; /* Increase the maximum width on smaller screens */
    margin: 10px; /* Reduce the margin on smaller screens */
  }
}

@media (max-width: 480px) {
  .database-test-setup {
    max-width: 90%; /* Increase the maximum width on very small screens */
    margin: 5px; /* Reduce the margin on very small screens */
  }
}


/* Spinner style */
.spinner {
  border: 4px solid #f3f3f3; /* Light grey */
  border-top: 4px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto; /* Center the spinner */
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Style for search input and dropdown */
.search-input, .custom-select {
  width: 30%;
  padding: 10px;
  margin: 5px 0;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.input-group {
  margin-bottom: 10px;
}

/* Button Style */
button {
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}



.modal2 {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modal-content2 {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 12px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn2 {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn2:hover {
  color: black;
}
.close-btn2:focus {
  color: black;
  text-decoration: none;
  outline: none;
}
.file-list li {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 7px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.file-list button {
  margin-left: 10px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.file-list button:first-of-type {
  background: #4CAF50;
  color: white;
}

.file-list button:last-of-type {
  background: #2196F3;
  color: white;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  color: #f44336;
  padding: 20px;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .main-page {
    margin-left: 0;
  }
  



  /* copilot section */
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .content-columns {
    flex-direction: column;
    height: auto;
  }

  .content-left {
    width: 100%;
    margin-bottom: 20px;
  }
  /* copilot section end */

  /* second copilot section */
  @media (max-width: 480px) {
    .modal-content {
      width: 90%;
      margin: 20% auto;
    }
    
    .modal-header {
      padding: 25px 20px 15px;
    }
    
    .modal-body {
      padding: 20px;
    }
  }

  /* pagination */

  /* .database-test-setup {
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
  } */
  
  .close-results-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
  }
  
  .input-group2 {
    margin: 10px 0;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  
  .input-group2 input,
  .input-group2 select,
  .input-group2 button {
    flex: 1;
    padding: 8px;
    font-size: 1rem;
  }
  
  .file-list {
    list-style: none;
    padding: 0;
  }
    
  .file-list button {
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
  }
  
  .pagination-controls {
    text-align: center;
    margin: 15px 0;
  }
  
  .spinner {
    text-align: center;
    margin: 20px 0;
  }

.input-row2 {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 8px 0;
    align-items: center;
}

.input-row2 {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.input-row2 select,
.input-row2 input,
.input-row2 button {
    padding: 5px 8px;
    font-size: 14px;
}

.input-row2 select {
    width: 150px;
    flex-shrink: 0;
}

.input-row2 input {
    flex: 1;
    min-width: 180px;
}

.input-row2 button {
    flex-shrink: 0;
    white-space: nowrap;
    width: 80px;
}

/* 📱 Stack vertically on small screens */
@media (max-width: 600px) {
    .input-row2 {
        flex-direction: column;
        align-items: stretch;
    }

    .input-row2 select,
    .input-row2 input,
    .input-row2 button {
        width: 100%;
    }
}



  
  /* Mobile adjustments */
  @media (max-width: 600px) {
    .input-group2 {
      flex-direction: column;
    }
  
    .file-list li {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .file-list button {
      margin-top: 5px;
    }
  }
  






  /* General styles for mobile compatibility */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Responsive layout for mobile screens */
@media (max-width: 768px) {
  #cardsContainer, #mainPage {
      padding: 10px;
      width: 100%;
  }

  .test-controls {
      flex-direction: column;
      align-items: center;
  }

  .capture-button {
      width: 100%;
      font-size: 16px;
      padding: 10px;
  }

  .test-results {
      font-size: 14px;
      margin-top: 10px;
  }

  .heatmap-container {
      width: 100%;
      overflow-x: auto;
      margin-top: 20px;
  }
  /* .content-right{
    overflow: auto;
  } */

  #heatmap {
      width: 100%;
      height: auto;
  }

  #loginModal {
      width: 90%;
      margin: auto;
      padding: 20px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  #username, #password {
      width: 100%;
      font-size: 16px;
      padding: 10px;
  }

  #errorMsg {
      font-size: 14px;
      color: red;
      text-align: center;
  }

  #contentBody {
      padding: 10px;
  }
}
  
  /* end */
}

.asana-info-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 40px;
  text-align: center;
  border-radius: 6px;
}
.asana-name {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: bold;
}
.asana-feedback-icon {
  font-size: 1.5rem;
}

/* battery status */
.battery-container {
  margin: 20px auto;
  padding: 16px;
  max-width: 960px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.battery-container h4 {
  text-align: center;
  /* font-size: 1.5rem; */
  margin-bottom: 1rem;
  color: #333;
}

.battery-scroll-wrapper {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.battery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.battery-grid div {
  background-color: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  word-wrap: break-word;
}

.battery-grid span {
  font-weight: 600;
  margin-right: 8px;
  color: #444;
}

/* Responsive font & padding */
@media screen and (max-width: 768px) {
  .battery-container {
    padding: 12px;
  }

  .battery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .battery-grid div {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}


