/* Base Styling */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0 20px 40px;
  background: #f5f5f5;
  color: #333;
}

h2 {
  text-align: center;
  margin-top: 10px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: white;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.logo {
  height: 50px;
  width: auto;
}

.company-name {
  font-size: 1.5rem;
  font-weight: bold;
}

.logout-button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.logout-button:hover {
  background: #b02a37;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 30px;
  gap: 10px;
  flex-direction: row;
}

.tabs li {
  flex: 1 1 auto;
  max-width: 200px;
}

.tabs a {
  display: block;
  width: 100%;
  text-decoration: none;
  background: #ddd;
  padding: 10px 20px;
  border-radius: 5px;
  color: #000;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
  font-size: 1rem;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tabs a.active,
.tabs a:hover {
  background: #007BFF;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Tab Panels */
.tab {
  display: none;
  margin-top: 20px;
  padding: 10px;
  background: white;
  border-radius: 5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab.active {
  display: block;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

input,
button,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: #007BFF;
  color: white;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

button:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.notice {
  color: green;
  text-align: center;
  margin-top: 10px;
}

/* Forgot password link */
a.forgot-link {
  display: inline-block;
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: #007BFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.forgot-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .tabs {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .tabs li {
    width: 100%;
    max-width: unset;
  }

  .tabs a {
    font-size: 1.1rem;
    padding: 12px;
  }

  .site-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .logout-button {
    margin-top: 10px;
  }

  .logo {
    height: 40px;
  }
}

.flash {
  max-width: 500px;
  margin: 10px auto;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  animation: fadeOut 5s ease forwards;
}

.flash.success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.flash.error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

.site-footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}

.top-nav {
  background: #007BFF;
  padding: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.top-nav a:hover {
  text-decoration: underline;
}

.top-nav {
  background: #007BFF;
  padding: 10px 20px;
  display: flex;
  gap: 20px;
}

.top-nav a, .top-nav button {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.top-nav a:hover, .top-nav button:hover {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}

.top-nav {
  background: #007BFF;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.top-nav .nav-left {
  display: flex;
  gap: 20px;
}

.top-nav .nav-left a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.top-nav .nav-left a:hover {
  text-decoration: underline;
}

.top-nav .nav-right button {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.top-nav .nav-right button:hover {
  background: rgba(255, 255, 255, 0.1);
}

