/* 
  GardenPro Theme Styles
  Primary: #16A34A (Fresh Green)
  Secondary: #92400E (Wood Brown)  
  Accent: #65A30D (Lime Green)
  Dark: #14532D (Dark Forest)
  Light Background: #F0FDF4 (Mint)
  Cards: #FFFFFF
*/

:root {
  --gp-primary: #16A34A;
  --gp-secondary: #92400E;
  --gp-accent: #65A30D;
  --gp-dark: #14532D;
  --gp-darker: #052E16;
  --gp-light: #F0FDF4;
  --gp-white: #FFFFFF;
  --gp-text: #334155;
  --gp-text-light: #64748b;
  --sidebar-width: 260px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--gp-light);
  color: var(--gp-text);
  margin: 0;
  overflow-x: hidden;
}

/* Auth Login Page */
.login-body {
  background: linear-gradient(135deg, var(--gp-dark) 0%, #15803d 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--gp-white);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  border: none;
}

.login-card .card-header {
  background: var(--gp-white);
  border-bottom: 2px solid var(--gp-light);
  padding: 2rem 2rem 1rem;
}

.login-card .card-body {
  padding: 2rem;
}

.btn-primary-gp {
  background-color: var(--gp-primary);
  border-color: var(--gp-primary);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary-gp:hover {
  background-color: var(--gp-accent);
  border-color: var(--gp-accent);
  color: white;
  transform: translateY(-1px);
}

.text-gp-primary {
  color: var(--gp-primary) !important;
}

/* Sidebar Wrapper */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--gp-dark) 0%, var(--gp-darker) 100%);
  color: #fff;
  transition: all 0.3s;
  min-height: 100vh;
}

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

#sidebar ul p {
  color: #fff;
  padding: 10px;
}

#sidebar ul li a {
  padding: 12px 20px;
  font-size: 1.05rem;
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.2s;
  border-left: 4px solid transparent;
}

#sidebar ul li a i {
  width: 25px;
  text-align: center;
  margin-right: 10px;
}

#sidebar ul li a:hover,
#sidebar ul li.active > a {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--gp-primary);
}

/* Page Content */
#content {
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s;
}

.top-navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 20px;
}

.page-container {
  padding: 25px;
}

/* Cards */
.gp-card {
  background: var(--gp-white);
  border-radius: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: none;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gp-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background-color: transparent;
  font-weight: 600;
  color: var(--gp-dark);
}

.gp-card-body {
  padding: 20px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--gp-light);
  color: var(--gp-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Tables */
.table-gp {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.table-gp thead th {
  background-color: var(--gp-light);
  color: var(--gp-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--gp-primary);
}
.table-gp tbody tr:hover {
  background-color: #f8fafc;
}

/* Badges */
.badge-gp-success {
  background-color: var(--gp-primary);
  color: white;
}
.badge-gp-warning {
  background-color: var(--gp-accent);
  color: white;
}
.badge-gp-danger {
  background-color: var(--gp-secondary); /* Wood brown as warning/danger alternative */
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
      margin-left: calc(var(--sidebar-width) * -1);
      position: absolute;
      z-index: 999;
  }
  #sidebar.active {
      margin-left: 0;
  }
}

.overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}
.overlay.active {
  display: block;
  opacity: 1;
}
