/* --- Base Site Styles --- */
:root {
  --background-main: #f5f8fa;
  --header-bg: #ffffff;
  --header-text: #004d40;
  --accent-green: #2e6d5a;
  --off-white: #fdfdfb;
  --text-color: #222;
  --admin-text-color: #ddd;
}

body.dark-mode {
  --background-main: #1c1c1c;
  --header-bg: #2a2a2a;
  --header-text: #dddddd;
  --text-color: #ddd;
}

body {
  background-color: var(--background-main);
  color: var(--text-color);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background-color: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  background-color: #245c2f !important;
  color: #fdfdfd;
  padding: 20px;
  text-align: center;
}

.logo {
  height: 48px;
  margin-right: 1rem;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--accent-green);
  font-weight: 500;
}

main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero {
  background-color: #ffffffcc;
  border-left: 4px solid var(--accent-green);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.intro h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.intro ul {
  padding-left: 1.25rem;
}

.button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  background-color: #245c2f;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.button:hover {
  background-color: #1e4b26;
}


footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

.theme-toggle {
  text-align: center;
  margin-top: 0.5rem;
}

.theme-toggle button {
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  background: none;
  border: 2px solid var(--accent-green);
  border-radius: 20px;
  color: var(--accent-green);
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.theme-toggle button:hover {
  background-color: var(--accent-green);
  color: white;
}

body.dark-mode .theme-toggle button {
  border-color: var(--header-text);
  color: var(--header-text);
}

body.dark-mode .theme-toggle button:hover {
  background-color: var(--header-text);
  color: var(--background-main);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}



.login-box h2 {
  margin-bottom: 24px;
  font-size: 1.8em;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="tel"], 
.login-box textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-buttons {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.login-buttons button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  background-color: #245c2f;
  color: white;
  cursor: pointer;
}

.login-buttons button:hover {
  background-color: #1e4b26;
}

.admin-theme {
  background-color: #f5f5f5;  /* Clean light grey */
  border-color: #999;         /* Neutral border */
}

.admin-theme h2 {
  color: #003366;
}

.admin-theme .login-buttons button {
  background-color: #336699;
  color: white;
}

.admin-theme .login-buttons button:hover {
  background-color: #2b5d8e;
}

/* Default (light mode) */
body {
  background-color: #fff;
  color: #000;
}

/* Base dark theme */
body.dark-mode {
  background-color: #0d1f14;
  color: #f0f0f0;
}

/* Navbar and header */
body.dark-mode .navbar,
body.dark-mode .site-header {
  background-color: #163426;
}

/* Footer */
body.dark-mode .site-footer {
  background-color: #122b20;
  color: #ccc;
}

/* Links */
body.dark-mode a {
  color: #a5e7ba;
}

/* Optional login box override */
body.dark-mode .login-box {
  background-color: #1c3326;
  color: #f0f0f0;
  border-color: #2f5c44;
}

.fixed-dark-text {
  color: #111 !important; /* Or use any very dark color */
}

body.dark-mode .fixed-dark-text {
  color: #111 !important;
}

body:not(.dark-mode) .fixed-dark-text {
  color: #111 !important;
}

/* Improve vertical centering on login pages */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  min-height: unset;
}

/* Ensure page fills full height and centers content */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--off-white, #fdfdfb);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
}

.product-card h3 {
  margin-top: 0;
  color: var(--accent-green, #2e6d5a);
}

.product-card .price {
  font-weight: bold;
  color: #245c2f;
  margin-top: 1rem;
}


/* Tighten the login box design */
.login-box {
  margin: 0 auto;
  padding: 2rem 2.5rem;
  background-color: var(--box-bg-color, #e0e0e0);
  border-radius: 12px;
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
}

/* Sticky footer */
footer {
  margin-top: auto;
}

/* --- Consolidated from site.css --- */

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  margin: 0 0.5rem;
}
.header {
  background-color: #004b2d;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo-box img {
  width: 100px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  border-radius: 20%;
  display: block;
  margin: 0 auto;
}
.site-title {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fdfdfd;
}
.site-title h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
nav a {
  color: white;
  font-weight: bold;
}
.hero p {
  font-size: 1.2rem;
}
/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}
body.dark-mode .header,
body.dark-mode footer {
  background-color: #00321f;
}
body.dark-mode .site-header {
  background-color: #163426;
  color: #eee;
}
body.dark-mode nav a,
body.dark-mode .theme-toggle button {
  color: #eee;
}
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.nav-buttons .button {
  background-color: #00754a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.nav-buttons .button:hover {
  background-color: #005f3a;
}
.nav-buttons .button.secondary {
  background-color: #555;
}
.nav-buttons .button.secondary:hover {
  background-color: #333;
}
.site-footer {
  background-color: #245c2f;
  color: #fdfdfd;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}
.site-footer a {
  color: #d0f0d0;
  text-decoration: none;
  margin: 0 8px;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-content p {
  margin: 5px 0;
}
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo-title img {
  width: 100px;
  height: 100px;
  border-radius: 20%;
}
.site-title {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fdfdfd;
}
@media (max-width: 600px) {
  .logo-title {
    flex-direction: column;
    gap: 10px;
  }
.logo-title img {
  width: 100px;
  height: 100px;
  border-radius: 20%;
}
.site-title {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fdfdfd;
}
}

.toggle-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}

/* Reusable Utility Classes */
.card {
  background-color: var(--off-white, #fdfdfb);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
}

.form-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

/* --- Admin Styles --- */

/* === Admin Theme Colors === */
:root {
  --admin-bg: #0f1e2d;
  --admin-header: #1a2e4a;
  --admin-accent: #4a90e2;
  --admin-text: #e0e6ed;
  --admin-hover: #2a4b6e;
}

/* Admin Header */
.admin-header {
  background-color: var(--admin-header);
  color: var(--admin-text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.admin-header img {
  height: 60px;
  border-radius: 12px;
}
.admin-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--admin-text);
}

/* Admin Navigation */
.admin-nav {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-nav a {
  color: var(--admin-text);
  background-color: var(--admin-accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.admin-nav a:hover {
  background-color: var(--admin-hover);
}

/* Admin Main Container */
.admin-container {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  padding: 2rem;
  min-height: 80vh;
}

/* Admin Cards */
.admin-card {
  background-color: #000000;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

/* Admin Tables */
.admin-container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.admin-container th,
.admin-container td {
  border: 1px solid #2a3d5c;
  padding: 12px;
  text-align: left;
}
.admin-container th {
  background-color: #22344d;
  color: #fff;
}
.admin-container tr:nth-child(even) {
  background-color: #1b2b44;
}
.admin-container tr:hover {
  background-color: #2c4469;
}

/* Admin Buttons */
.admin-container .button {
  background-color: var(--admin-accent);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.admin-container .button:hover {
  background-color: var(--admin-hover);
}


/* === Admin Footer === */
.admin-footer {
  background-color: #1a2e4a;
  color: var(--admin-text);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}
.admin-footer a {
  color: #b0d4ff;
  text-decoration: none;
  margin: 0 8px;
}
.admin-footer a:hover {
  text-decoration: underline;
}
.admin-footer .footer-content p {
  margin: 5px 0;
}

/* Admin logo (blue tone version) */
.admin-logo {
  height: 200px;
  width: 200px;
  border-radius: 12px;
}


/* === Admin Footer - Light Mode === */
.admin-footer {
  background-color: #e3ecf7;
  color: #1a2e4a;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}
.admin-footer a {
  color: #1a2e4a;
  text-decoration: none;
  margin: 0 8px;
}
.admin-footer a:hover {
  text-decoration: underline;
}
.admin-footer .footer-content p {
  margin: 5px 0;
}

/* === Admin Footer - Dark Mode === */
body.dark-mode .admin-footer {
  background-color: #0f1e2d;
  color: #e0e6ed;
}
body.dark-mode .admin-footer a {
  color: #b0d4ff;
}
body.dark-mode .admin-footer a:hover {
  text-decoration: underline;
}

/* Admin Dashboard Tiles */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.dashboard-tile {
  background-color: var(--admin-accent);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.dashboard-tile:hover {
  background-color: var(--admin-hover);
}

/* Logo-Title Image and Text Styling */
.logo-title {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo-title img {
  width: 200px;
  height: 200px;
  border-radius: 20%;
  text-align: left;
  object-fit: contain;
}
.logo-title h1 {
  font-size: 2rem;
  text-align: center;
  margin: 0;
  color: var(--admin-text, #1a2e4a);
}

.toggle-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}

.login-box {
  background-color: #e0e0e0;
  color: #000;
}

body.dark-mode .login-box {
  background-color: #1c3326; /* already set */
  color: #f0f0f0;
}

.login-box.green {
  background-color: #e0f7e9;
  color: #003320;
  border: 1px solid #aad2bc;
}

body.dark-mode .login-box.green {
  background-color: #1c3326;
  color: #e0ffe9;
  border: 1px solid #3e7a5b;
}

.login-box.blue {
  background-color: #e6f0ff;
  color: #002244;
  border: 1px solid #bcd3f2;
}

body.dark-mode .login-box.blue {
  background-color: #1e2f44;
  color: #ddefff;
  border: 1px solid #4871a4;
}

:root {
  --card-bg: #e6f0ff;
  --admin-card-bg: #1a2e4a;
  --text-color: #000;
  --accent-color: #003366;
}

.admin-sections {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-around;
}

.admin-card {
  background-color: var(--admin-card-bg);
  color: var(--admin-text-color);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-width: 250px;
  text-align: center;
}
.admin-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  text-decoration: none;
}

.admin-card h2 {
  color: #ddd;
}


.container { max-width: 900px; margin: 30px auto; }
.customer-table { width: 100%; border-collapse: collapse; margin-top: 1em; }
.customer-table th, .customer-table td { border: 1px solid #ccc; padding: 8px; text-align: left; }
.customer-table th { background: #f0f0f0; }
.btn { display: inline-block; padding: 5px 12px; margin: 2px; border-radius: 4px; border: none; cursor: pointer; font-size: 1em; }
.btn.primary { background: #3577ef; color: #fff; }
.btn.info { background: #2db6ff; color: #fff; }
.btn.warning { background: #ffc400; color: #333; }
.btn.danger { background: #e03a3a; color: #fff; }
.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(30,40,55,.25); align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 24px; border-radius: 8px; min-width: 350px; position: relative; }
.close { position: absolute; top: 8px; right: 14px; font-size: 1.5em; cursor: pointer; }
.modal.show { display: flex; }
label { margin-top: 8px; display: block; }
input, textarea { margin: 3px 0 10px 0; width: 97%; }

