:root {
    --primary-color: #4b515a;
    --secondary-color: #4b515a;
    --background-color: white;
    --border-color: #e2e8f0;
    --text-color: #4b515a;
    --header-bg: #4b515a;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #ffffff, #808080, #000000);
    color: var(--text-color);
    line-height: 0.85;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
  }
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
  }
  
  .header {
    background-color: transparent;
    color: var(--primary-color);
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    position: relative;
    display: none;
    text-shadow: none;
  }
  
  .version {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1rem;
  }
  
  .header h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
  }
  
  #searchInput {
    width: 250px;
    min-width: 250px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    display: block;
    text-align: center;
  }
  
  #searchInput:focus::placeholder {
    color: transparent;
  }
  
  #searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  #status {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
  }
  
  #status.error {
    display: block;
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }
  
  #status.success {
    display: block;
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
  }
  
  #status.info {
    display: block;
  background-color: #e6f3ff;
  color: #0066cc;
  border: 1px solid #bfdbfe;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#formResult {
  text-align: center;
  margin-top: 2rem;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  border-radius: 0 0 0 0;
  overflow: hidden;
}

.details-table td {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  text-align: left;
}

.details-label {
  font-weight: 600;
  background: #f8fafc;
  width: 10%;
  color: var(--text-color);
}

.details-value {
  width: 25%;
  background: white;
}

.history-title {
  background-color: var(--header-bg);
  color: white;
  padding: 0.5rem;
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.history-container {
  padding: 0;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0 0 0.5rem 0.5rem;
  background: white;
  overflow: hidden;
}

.history-table th,
.history-table td {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.875rem;
}

.history-table th {
  background-color: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-table .text-left {
  text-align: left;
  min-height: 100px;
  white-space: pre-line;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header h2 {
    font-size: 1.5rem;
  }

  .history-table {
    font-size: 0.875rem;
  }

  .details-table td {
    padding: 0.25rem;
    font-size: 0.75rem;
  }
  
  #searchInput {
    width: 200px;
    min-width: 200px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

.nav-btn:disabled {
  cursor: not-allowed;
}

/* Auth0 Login/Logout Buttons */
#auth-buttons {
  text-align: right;
  padding: 1rem;
}

#logout-button {
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  padding: 10px 10px;
  margin: 5px 0;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  opacity: 1;
  position: static;
}

#logout-button:hover {
  transform: translateX(10px);
  opacity: 0.8;
}

/* Auth Container Styles */
#auth-container {
  min-height: 100vh;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

#login-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  pointer-events: all;
}

#login-form form {
  width: 100%;
  margin-top: 0;
}

#login-form input:first-of-type {
  margin-top: 0;
}

#login-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(75, 81, 90, 0.1);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-buttons button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

#auth-submit-button {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  width: 100%;
  padding: 12px;
}

#reset-password-button {
  background-color: #f0f0f0;
  color: #666;
}

.auth-buttons button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-buttons button:active {
  transform: translateY(0);
}

#searchContainer {
  display: none;
  margin-top: 0rem;
}

#searchContainer > div:first-child {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

#app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: margin-left 0.3s ease;
}

.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.login-header {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
}

.login-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 12px;
}

.remember-me {
    display: flex;
    align-items: baseline;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.remember-me input[type="checkbox"] {
    margin: 0 2px 0 0;
    width: 14px;
    height: 14px;
    transform: scale(0.75);
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #666;
    background: white;
    cursor: pointer;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    left: 4px;
    top: -2px;
    font-size: 20px;
}

.remember-me span {
    margin-top: 10px;
    display: inline-block;
    position: relative;
    top: -5px;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    top: -5px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.page-indicator {
    color: white;
}

/* Add loading state styles */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Update these existing button styles to use the shared classes */
.nav-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}

/* Add these styles at the end of your CSS file */

.sidebar {
  position: fixed;
  left: -250px;
  top: 0;
  height: 100%;
  width: 250px;
  background: linear-gradient(to bottom, #ffffff, #808080, #000000);
  transition: 0.3s;
  z-index: 1000000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

/* Simple hover trigger */
.sidebar:hover {
  left: 0;
}

/* Update sidebar content styles */
.sidebar-content {
  padding: 20px 0 20px 10px;
  color: var(--primary-color);
  height: 100%;
  padding-top: 50px;
  position: relative;
}

/* Remove the header since we don't need "Navigation" text */
.sidebar-header {
  display: none;
}

/* Update sidebar nav links to be text-only */
.sidebar-nav a {
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  padding: 10px 10px;
  margin: 5px 0;
  background: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 600;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  background: none;
  transform: translateX(10px);
  opacity: 0.8;
}

/* Remove the line separators */
.sidebar-nav li {
  border-bottom: none; /* Remove the border */
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

/* Simple trigger area */
.sidebar::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  z-index: 1000000;
}

/* Remove the bullet points */
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Hide all page content by default */
.page-content {
  display: none;
}

/* Show active page content */
.page-content.active {
  display: block;
}

.version-number {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  left: 0;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
}

.sidebar-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 40px);
}

.user-email {
  color: var(--primary-color);
  font-size: 0.875rem;
  opacity: 0.8;
}

.version-number {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 5px;
}

.user-section {
  padding: 12px;
  margin-bottom: 40px;
  display: flex;
  justify-content: LEFT;
}

.user-info {
  display: flex;
  flex-direction: row;     /* Change to row to put items side by side */
  align-items: center;     /* Center items vertically */
  gap: 10px;              /* Space between icon and username */
}

.user-section i {
  font-size: 1.5rem;  /* Make icon smaller */
  color: var(--primary-color);
}

.user-name {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;              /* Remove margin since we're using gap */
}
