/* General Page Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Card Container */
.container {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Typography */
h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #111827;
}

p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Navigation Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-link {
  display: block;
  padding: 1rem;
  background-color: #f9fafb;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease-in-out;
}

/* Hover & Focus Interactions */
.app-link:hover {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.15);
}

.app-link:active {
  transform: translateY(0);
}

/* Inventory App Link (Custom Orange matching the Login Button) */
.app-link.inventory {
  background-color: #f97316;
  color: #ffffff;
  border-color: #f97316;
}

.app-link.inventory:hover {
  background-color: #ea6c0b;
  color: #ffffff;
  border-color: #ea6c0b;
  box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2);
}

/* Production Tracking App Link (Custom Blue matching the App theme) */
.app-link.production {
  background-color: #228be6;
  color: #ffffff;
  border-color: #228be6;
}

.app-link.production:hover {
  background-color: #1c7ed6;
  color: #ffffff;
  border-color: #1c7ed6;
  box-shadow: 0 4px 6px -1px rgba(34, 139, 230, 0.2);
}

/* Production Dashboard App Link (Custom Green) */
.app-link.production-dashboard {
  background-color: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
}

.app-link.production-dashboard:hover {
  background-color: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.app-link.admin {
  background-color: #6b7280;
  color: #ffffff;
  border-color: #6b7280;
}

.app-link.admin:hover {
  background-color: #4b5563;
  color: #ffffff;
  border-color: #4b5563;
  box-shadow: 0 4px 6px -1px rgba(107, 114, 128, 0.2);
}

/* Top Right Logout Button */
.logout-btn-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background-color: #ef4444;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.logout-btn-top:hover {
  background-color: #dc2626;
}

img {
  position: absolute;
  top: 1rem;
  left: 1rem;
}
