/*
  MassValuer UI Stylesheet
  License Policy:
  - No external fonts
  - No icon libraries
  - No UI frameworks
  - No attribution-required assets
  - All styles proprietary unless otherwise stated
*/

/* ==========================
   Root Variables
   ========================== */
:root {
  --green-primary: #2F4F3E;
  --green-secondary: #6B8E6E;
  --khaki-accent: #C2B280;
  --brown-earth: #7A6A4F;

  --bg-main: #F7F8F5;
  --bg-surface: #ECEEE8;
  --border-light: #D1D5CC;

  --text-primary: #2B2B2B;
  --text-secondary: #5F6B63;

  --success: #4F7F5A;
  --warning: #B89B5E;
  --danger: #9B4A3C;
}

/* ==========================
   Base Styles (License-Free)
   ========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================
   Panels
   ========================== */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1rem;
}

/* ==========================
   Headings
   ========================== */
h1, h2, h3 {
  color: var(--green-primary);
  font-weight: 600;
}

/* ==========================
   Buttons
   ========================== */
.btn-primary {
  background: var(--green-primary);
  color: #fff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--green-secondary);
}

/* ==========================
   Tables
   ========================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--border-light);
  text-align: left;
}

td {
  border-bottom: 1px solid var(--border-light);
  padding: 0.4rem 0.6rem;
}

tr:hover {
  background: #E6ECE6;
}

/* ==========================
   Inputs
   ========================== */
input,
select,
textarea {
  border: 1px solid var(--border-light);
  padding: 0.4rem;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-secondary);
  box-shadow: 0 0 0 2px rgba(107, 142, 110, 0.15);
}

/* ==========================
   Header & Logo
   ========================== */
.site-header {
  width: 100%;
  background: var(--bg-main);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ==========================
   Responsive Adjustments
   ========================== */
@media (max-width: 768px) {
  .site-header {
    padding: 0.8rem 1.2rem;
  }

  .site-logo img {
    height: 46px;
  }

  body {
    font-size: 16px; /* Slightly larger text on mobile for better readability */
  }

  .panel {
    padding: 0.8rem;
    margin: 0.5rem;
  }
}