:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  background-color: #eef2f1;
  color: #1c2b2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  background: #f5f6fa;
}

.landing-page {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12)),
    #f5f6fa;
}

.login-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.dashboard-page {
  background: #f5f6fa;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8vw;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f4c3a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(15, 76, 58, 0.12);
}

.menu a {
  margin-left: 18px;
  text-decoration: none;
  color: #1c2b2a;
  font-weight: 600;
}

.menu a.active,
.menu a:hover {
  color: #0f4c3a;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 48px 8vw 32px;
  align-items: center;
}

.landing-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  padding: 64px 8vw 40px;
  align-items: center;
}

.landing-hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 10px 0 14px;
  color: #2c3e50;
}

.landing-hero-content p {
  max-width: 520px;
  line-height: 1.6;
  color: #4a5568;
}

.landing-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(44, 122, 63, 0.12);
  color: #2c7a3f;
  font-weight: 700;
  font-size: 0.85rem;
}

.landing-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid #2c7a3f;
  color: #2c7a3f;
  text-decoration: none;
  font-weight: 700;
}

.landing-panel {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 18px;
}

.landing-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-panel-header img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.landing-panel-header span {
  display: block;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.landing-panel-body {
  display: grid;
  gap: 12px;
}

.panel-item {
  background: #f5f6fa;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  color: #2c3e50;
  font-weight: 600;
}

.landing-panel-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a5568;
  font-size: 0.9rem;
}

.landing-panel-footer img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f39c12;
}

.landing-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 0 8vw 48px;
}

.landing-benefits article {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12, 32, 28, 0.08);
}

.landing-benefits h3 {
  margin-top: 0;
  color: #2c7a3f;
}

.landing-contact {
  padding: 0 8vw 48px;
  text-align: center;
}

.landing-contact h2 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.contact-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.contact-grid div {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(12, 32, 28, 0.08);
  display: grid;
  gap: 6px;
}

.contact-grid span {
  color: #7f8c8d;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-grid strong {
  color: #2c3e50;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.hero-content p {
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #3b4a49;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #0f4c3a;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(15, 76, 58, 0.25);
}

.hero-card {
  padding: 28px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(15, 76, 58, 0.1);
}

.hero-card .accent {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f4c3a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 8vw 48px;
}

.benefit-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(28, 43, 42, 0.08);
}

.benefit-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #0f4c3a;
}

.site-footer {
  text-align: center;
  padding: 20px;
  background: #0f4c3a;
  color: #ffffff;
}

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

.login-page .site-header {
  display: none;
}

.login-box {
  width: min(450px, 100%);
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 24px;
}

.form-error {
  background: #ffe5e5;
  border: 1px solid #f2b8b8;
  color: #7d1a1a;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.login-header {
  text-align: center;
}

.login-header h1 {
  margin: 0 0 6px;
  color: #2c7a3f;
  letter-spacing: 2px;
}

.login-mascot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f39c12;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.subtitle {
  margin: 0 0 4px;
  color: #4a9d5f;
  font-weight: 600;
}

.tagline {
  margin: 0;
  color: #7f8c8d;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #1c2b2a;
}

.field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: #2c7a3f;
  box-shadow: 0 0 0 3px rgba(44, 122, 63, 0.1);
  outline: none;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #2c3e50;
}

.link {
  color: #0f4c3a;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.login-footer {
  text-align: center;
  display: grid;
  gap: 10px;
}

.login-logo-footer {
  width: 160px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  border: none;
  justify-self: center;
}

.product-line {
  margin: 0;
  color: #2c3e50;
  font-size: 0.95rem;
}

.copyright {
  margin: 0;
  color: #95a5a6;
  font-size: 0.85rem;
}

.dashboard {
  display: flex;
  justify-content: center;
  padding: 48px 8vw 80px;
}

.dashboard-card {
  width: min(680px, 100%);
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(12, 32, 28, 0.15);
}

.dashboard-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.dashboard-links a {
  text-decoration: none;
  color: #0f4c3a;
  font-weight: 600;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #2c7a3f, #2c3e50);
  color: #ffffff;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 0;
}

.sidebar-header {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  margin-bottom: 10px;
}

.sidebar-nav {
  padding: 20px 0;
  display: grid;
}

.sidebar-nav .nav-item {
  padding: 14px 26px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #f39c12;
}

.sidebar-footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.sidebar-mascot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.main-content {
  margin-left: 260px;
  flex: 1;
}

.topbar {
  height: 70px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.user-pill {
  background: #eef2f1;
  color: #2c3e50;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.content-area {
  padding: 30px;
}

.welcome-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(12, 32, 28, 0.08);
  margin-bottom: 24px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.module-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(12, 32, 28, 0.08);
  display: grid;
  gap: 8px;
}

.module-card h3 {
  margin: 0;
  color: #2c7a3f;
}

.module-link {
  align-self: start;
  background: rgba(44, 122, 63, 0.12);
  color: #2c7a3f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
  text-decoration: none;
}

.module-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #2c3e50;
}

.module-form input,
.module-form select,
.module-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-form input:focus,
.module-form select:focus,
.module-form textarea:focus {
  border-color: #2c7a3f;
  box-shadow: 0 0 0 3px rgba(44, 122, 63, 0.1);
  outline: none;
}

.form-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(12, 32, 28, 0.08);
  margin-bottom: 24px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.span-2 {
  grid-column: span 2;
}

.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.secondary-button {
  background: #eef2f1;
  color: #2c3e50;
}

.danger-button {
  background: #f8d7da;
  color: #7d1a1a;
}

.table-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions form {
  margin: 0;
}

.table-four {
  grid-template-columns: repeat(4, 1fr);
}

.table-five {
  grid-template-columns: repeat(5, 1fr);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.module-header h1 {
  margin: 0 0 6px;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.module-table {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(12, 32, 28, 0.08);
  overflow: hidden;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 18px;
}

.table-header {
  background: #f5f6fa;
  font-weight: 700;
  color: #2c3e50;
}

.table-row {
  border-top: 1px solid #eef2f1;
  color: #4a5568;
}

.category-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.category-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f5f6fa;
  border-radius: 10px;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pos-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.pos-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.pos-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pos-tabs .tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dfe6e5;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.pos-tabs .tab.active {
  background: #2c7a3f;
  color: #ffffff;
  border-color: transparent;
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.pos-product {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(12, 32, 28, 0.08);
  display: grid;
  gap: 10px;
}

.pos-product img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.pos-product h4 {
  margin: 0;
  font-size: 0.95rem;
}

.pos-product span {
  color: #2c7a3f;
  font-weight: 700;
  font-size: 0.95rem;
}

.pos-product button {
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2f1;
  color: #2c3e50;
  font-weight: 700;
  cursor: pointer;
}

.product-meta {
  display: grid;
  gap: 4px;
  color: #2c3e50;
}

.product-meta small {
  color: #7f8c8d;
  font-weight: 600;
}

.product-price {
  display: inline-flex;
}

.product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-six {
  grid-template-columns: 2fr 0.7fr 0.9fr 0.8fr 0.9fr 0.6fr;
}

.table-five {
  grid-template-columns: 2fr 0.7fr 0.9fr 1fr 0.6fr;
}

.invoice-row {
  align-items: center;
}

.qty-input {
  width: 80px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #dfe6e5;
}

.discount-input {
  width: 90px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #dfe6e5;
}

.tax-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #2c3e50;
}

.remove-button {
  border: none;
  background: #f8d7da;
  color: #7d1a1a;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 700;
}

.pos-right {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(12, 32, 28, 0.1);
  display: grid;
  gap: 16px;
}

.pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pos-header span {
  color: #7f8c8d;
}

.pos-type {
  display: flex;
  gap: 10px;
}

.pos-type label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.pos-client {
  display: grid;
  gap: 10px;
}

.pos-client label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.pos-client input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.pos-client select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: #ffffff;
}

.pos-table {
  background: #f9fbfa;
  border-radius: 12px;
  overflow: hidden;
}

.pos-summary {
  display: grid;
  gap: 10px;
  background: #f5f6fa;
  padding: 12px;
  border-radius: 12px;
}

.pos-summary div {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.pos-total strong {
  font-size: 1.2rem;
  color: #2c7a3f;
}

.pos-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(680px, 100%);
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.invoice-modal-body {
  display: grid;
  gap: 16px;
}

.invoice-meta {
  color: #7f8c8d;
  font-weight: 600;
  display: grid;
  gap: 6px;
}

.invoice-items {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}

.invoice-item {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f6fa;
  font-weight: 600;
}

.invoice-item strong {
  text-align: right;
}

.invoice-modal-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f6fa;
}

.invoice-modal-summary div {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.invoice-total strong {
  color: #2c7a3f;
  font-size: 1.1rem;
}

.invoice-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 12px;
  align-items: end;
}

.invoice-payment label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.invoice-payment input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
}

.change-box {
  background: #eef2f1;
  padding: 12px;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .module-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-actions {
    justify-content: flex-start;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 18px rgba(12, 32, 28, 0.08);
}

.stat-label {
  color: #7f8c8d;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .menu a {
    margin: 0 10px;
  }
}
