:root {
  /* Updated Colors */
  --primary-color: #365e4d; /* Deep Forest Green */
  --secondary-color: #5f8d7a; /* Lighter shade for hover/secondary elements */
  --background-color: #e6f4ea; /* Very Light Grayish Green */
  --text-color: #333; /* Keep dark text for readability */
  --container-bg: #ffffff; /* Keep container white for contrast */
  --success-color: #365e4d; /* Use primary color for success */
  --danger-color: #dc3545; /* Keep standard danger color */
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 4px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color); /* Use variable */
  margin: 0;
  padding: 0; /* Remove padding to allow header to extend full width */
  background-color: var(--background-color); /* Use variable */
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 20px; /* Remove top padding, keep sides and bottom */
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 0 20px;
  background-color: var(--primary-color); /* Add background color to header */
  color: white;
  border-bottom: none; /* Remove border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

header h1, header p {
  color: white; /* Make header text white for contrast */
  margin: 10px 0; /* Add spacing */
}

/* Logo styling */
header img {
  height: 80px; /* Slightly smaller */
  margin-bottom: 15px;
  background-color: white; /* Add white background to logo */
  padding: 10px; /* Add padding around logo */
  border-radius: 50%; /* Make it circular */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--primary-color); /* Use primary color for headings */
}

.login-form {
  margin: 0 auto 30px;
  padding: 25px;
  border-radius: var(--border-radius);
  background-color: var(--container-bg); /* White background for contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
}

button {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: var(--secondary-color); /* Use secondary for hover */
}

.btn-refresh {
  background-color: var(--secondary-color); /* Use secondary for refresh */
  margin-left: 10px;
}

.btn-refresh:hover {
  background-color: var(--primary-color); /* Darken on hover */
}

.status-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: var(--border-radius);
}

.status-success {
  background-color: rgba(54, 94, 77, 0.1); /* Lighter primary bg */
  border: 1px solid rgba(54, 94, 77, 0.2); /* Lighter primary border */
  color: var(--success-color); /* Use primary color for text */
}

.status-error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
}

/* Style for the new order section */
#orderSection {
  background-color: var(--container-bg); /* White background for contrast */
  padding: 25px; /* Add padding */
  border-radius: var(--border-radius); /* Add border radius */
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.session-container {
  margin-top: 20px;
  display: none;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-actions {
  display: flex;
  gap: 10px;
  align-items: center; /* Align buttons vertically */
}

.session-actions button {
  height: 40px; /* Set a consistent height for both buttons */
}

.session-card {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.session-title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.session-title h3 {
  margin: 0;
}

.session-detail {
  margin-bottom: 5px;
}

.session-key {
  font-weight: bold;
}

.session-value {
  margin-left: 5px;
}

.loading {
  text-align: center;
  padding: 20px;
  display: none;
}

.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logout-btn {
  background-color: var(--secondary-color); /* Changed from danger to secondary */
}

.logout-btn:hover {
  background-color: var(--primary-color); /* Changed hover to primary */
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  .session-title {
    flex-direction: column;
  }
}
