* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F9EC;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  background: #3B6D11;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  background: #3B6D11;
  text-align: center;
}

.sidebar-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  margin-bottom: 10px;
  object-fit: cover;
  display: inline-block;
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 500;
}

.sidebar-user {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-email {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.sidebar-user-role {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu a .material-icons {
  margin-right: 12px;
  font-size: 20px;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
  max-width: calc(100% - 250px);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: white;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1 {
  font-size: 24px;
  font-weight: 400;
  color: #2C2C2A;
}

.navbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Container */
.container {
  flex: 1;
  padding: 30px;
  max-width: 1400px;
  width: 100%;
}

/* Auth pages (login, register, etc.) - true center, horizontal + vertical */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-box {
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 8px;
  border: 1px solid #C0DD97;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.auth-box h1 {
  text-align: center;
  color: #27500A;
}

/* Footer */
.footer {
  background: white;
  padding: 20px 30px;
  text-align: center;
  color: #5F5E5A;
  font-size: 14px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Headings */
h1 {
  color: #27500A;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 25px;
}

h2 {
  color: #3B6D11;
  margin: 20px 0 10px;
  font-weight: 400;
}

h3 {
  color: #131a0f;
  margin: 15px 0 10px;
  font-weight: 500;
}

/* Nav bar (top links used throughout the app) */
.nav {
  background: white;
  border: 1px solid #C0DD97;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.nav a {
  color: #3B6D11;
  font-weight: 500;
  margin-right: 4px;
}

.nav a:hover {
  color: #27500A;
}

.card {
  background: white;
  border: 1px solid #EAF3DE;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

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

label {
  display: block;
  margin-bottom: 8px;
  color: #5F5E5A;
  font-weight: 500;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #C0DD97;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F9EC;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #639922;
  background: white;
}

button {
  background: #639922;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
}

button:hover {
  background: #3B6D11;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgb(255, 255, 255);
}

th, td {
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
}

th {
  background: #ffffff;
  color: #000000;
  font-weight: 500;
}

tr:hover td {
  background: #F4F9EC;
}

/* Links */
a {
  color: #3B6D11;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Info / message boxes */
.info-box {
  background: #FAEEDA;
  border-left: 3px solid #EF9F27;
  color: #854F0B;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.success {
  background: #EAF3DE;
  border-left: 3px solid #639922;
  color: #27500A;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.error {
  background: #FAECE7;
  border-left: 3px solid #D85A30;
  color: #712B13;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Badges (roles, status) */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #EAF3DE;
  color: #27500A;
}

.badge-admin {
  background: #FAECE7;
  color: #712B13;
}

.badge-manager {
  background: #FAEEDA;
  color: #854F0B;
}

.badge-user {
  background: #EAF3DE;
  color: #27500A;
}

.badge-verified {
  background: #EAF3DE;
  color: #27500A;
}

.badge-unverified {
  background: #F1EFE8;
  color: #5F5E5A;
}