/* ========================
   ADMIN PANEL STYLES
   ======================== */

:root {
  --primary-color: #B7E35A;
  --primary-dark: #2F4F4A;
  --secondary-color: #f5f5f5;
  --text-dark: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --success-color: #4CAF50;
  --danger-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196F3;
  --transition: all 0.3s ease;
}

/* ========================
   ADMIN LOGIN PAGE
   ======================== */

.admin-login-page {
  margin: 0;
  padding: 0;
  font-family: 'LatoWeb', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

.login-split {
  display: flex;
  min-height: 100vh;
}

/* Left branding panel */
.login-panel {
  flex: 1;
  background: linear-gradient(145deg, var(--primary-dark) 0%, #1a3530 60%, #0f2420 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.login-panel-inner {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 420px;
}

.login-brand-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-color);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(183, 227, 90, 0.35);
}

.login-panel-inner h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.login-panel-inner > p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin: 0 0 36px;
}

.login-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.login-features li i {
  color: var(--primary-color);
  font-size: 16px;
  flex-shrink: 0;
}

.login-panel-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(183, 227, 90, 0.06);
  z-index: 1;
}

.login-panel-orb--1 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
}

.login-panel-orb--2 {
  width: 220px;
  height: 220px;
  top: -60px;
  left: -60px;
  background: rgba(183, 227, 90, 0.04);
}

/* Right form panel */
.login-form-panel {
  width: 480px;
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
}

.login-form-inner {
  width: 100%;
  max-width: 360px;
}

.login-form-header {
  margin-bottom: 36px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(183, 227, 90, 0.15);
  color: #5a7a1a;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.login-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 6px;
}

.login-form-header p {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

/* Admin Login Form */
.admin-login-form {
  margin-bottom: 24px;
}

.admin-login-form .form-group {
  margin-bottom: 20px;
}

.admin-login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
}

.admin-login-form .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-login-form .input-wrap > i:first-child {
  position: absolute;
  left: 14px;
  color: #aaa;
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.admin-login-form .input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 42px !important;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  transition: var(--transition);
  box-sizing: border-box;
}

.admin-login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(183, 227, 90, 0.15);
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 15px;
  transition: var(--transition);
  padding: 4px;
}

.pwd-toggle:hover {
  color: var(--primary-dark);
}

.admin-login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-color), #a8d949);
  color: var(--primary-dark);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 227, 90, 0.45);
}

.admin-login-btn:active {
  transform: translateY(0);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.alert-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

.login-note {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ========================
   ADMIN DASHBOARD LAYOUT
   ======================== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--primary-dark), #1a2f2a);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 200;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.admin-logo-mini {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.admin-sidebar-header h2 {
  font-size: 16px;
  margin: 0;
  flex: 1;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: white;
}

.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(183, 227, 90, 0.15);
  color: white;
}

.nav-item.active {
  background: linear-gradient(90deg, var(--primary-color), #a8d949);
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
  .admin-sidebar-footer {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    padding-bottom: calc(12px + 50px);
  }
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #ff6b6b;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 14px;
}

.logout-btn:hover {
  background: rgba(255, 107, 107, 0.15);
}

/* Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
}

.btn-topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary-color), #a8d949);
  color: var(--primary-dark);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-topbar-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(183, 227, 90, 0.5);
}

.btn-topbar-action:active {
  transform: translateY(0);
}

.topbar-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

/* Main Content */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-topbar {
  background: white;
  padding: 0 30px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--primary-dark);
  line-height: 1.2;
}

.topbar-date {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: white;
  cursor: default;
  transition: var(--transition);
}

.admin-user-chip:hover {
  border-color: var(--primary-color);
  background: rgba(183, 227, 90, 0.06);
}

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), #a8d949);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hamburger Button */
.admin-hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  margin-right: 15px;
}

.admin-hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.admin-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.admin-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.admin-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.admin-role {
  font-size: 11px;
  color: var(--text-light);
  text-transform: capitalize;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.content-header {
  margin-bottom: 30px;
}

.content-header h2 {
  font-size: 20px;
  color: var(--text-dark);
  margin: 0 0 5px;
}

.text-muted {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

/* ========================
   DASHBOARD WELCOME & STATS
   ======================== */

.dashboard-welcome {
  background: linear-gradient(135deg, var(--primary-color), #a8d949);
  color: var(--primary-dark);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.dashboard-welcome h2 {
  font-size: 22px;
  margin: 0 0 5px;
}

.dashboard-welcome p {
  margin: 0;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 15px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.stat-icon.users {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.equipment {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon.orders {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-icon.revenue {
  background: linear-gradient(135deg, var(--primary-color), #a8d949);
}

.stat-content h3 {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  margin: 0 0 5px;
  font-weight: 600;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 5px;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

/* Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: #f9f9f9;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.card-link:hover {
  color: #a8d949;
}

.card-body {
  padding: 20px;
}

.card-body p {
  color: var(--text-light);
  margin: 0 0 15px;
  font-size: 14px;
}

.action-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--primary-dark);
  text-decoration: none;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background: #a8d949;
  transform: translateX(2px);
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.footer-stat {
  font-size: 14px;
  color: var(--text-dark);
}

.footer-stat strong {
  color: var(--primary-dark);
}

/* ========================
   MANAGEMENT PAGES
   ======================== */

.management-toolbar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(183, 227, 90, 0.1);
}

.filter-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-options select {
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.filter-options select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-primary {
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--primary-dark);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #a8d949;
  transform: translateY(-2px);
}

/* Table Container */
.table-container {
  background: white;
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.management-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.management-table thead {
  background: #f9f9f9;
  border-bottom: 2px solid var(--border-color);
}

.management-table th {
  padding: 15px;
  text-align: left;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.management-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.management-table tbody tr:hover {
  background: #fafafa;
}

.management-table .no-data {
  text-align: center;
  color: var(--text-light);
  padding: 40px !important;
}

.management-table .no-data i {
  font-size: 40px;
  color: var(--border-color);
  margin-bottom: 10px;
  display: block;
}

.badge {
  background: var(--primary-color);
  color: var(--primary-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.active,
.status-badge.confirmed {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.inactive,
.status-badge.pending {
  background: #fff3e0;
  color: #e65100;
}

.status-badge.completed {
  background: #e0f2f1;
  color: #00695c;
}

.status-badge.cancelled,
.status-badge.rented {
  background: #ffebee;
  color: #c62828;
}

.status-badge.available {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.maintenance {
  background: #fff3e0;
  color: #e65100;
}

.category-badge {
  background: #e3f2fd;
  color: #1565c0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: capitalize;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons .action-btn {
  padding: 6px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-buttons .view-btn {
  background: var(--info-color);
  color: white;
}

.action-buttons .delete-btn {
  background: var(--danger-color);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.page-btn {
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dark);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 14px;
  color: var(--text-light);
}

/* ========================
   MODALS
   ======================== */

.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.admin-modal.active {
  display: flex;
}

.modal-content,
.modal-content-lg {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-content {
  width: 90%;
  max-width: 500px;
}

.modal-content-lg {
  width: 90%;
  max-width: 700px;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  padding: 10px 20px;
  background: #f0f0f0;
  color: var(--text-dark);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-danger {
  padding: 10px 20px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Detail Sections */
.detail-section {
  margin-bottom: 20px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  font-size: 14px;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 13px;
}

.detail-row span {
  color: var(--text-dark);
}

.detail-row .amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

/* ========================
   FORMS IN MODALS
   ======================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(183, 227, 90, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 768px) {
  .admin-wrapper {
    flex-direction: column;
  }

  .admin-hamburger {
    display: flex;
  }

  .sidebar-close {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .topbar-date {
    display: none;
  }

  .btn-topbar-action span {
    display: none;
  }

  .btn-topbar-action {
    padding: 9px 11px;
    border-radius: 8px;
  }

  .admin-content {
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .stat-value {
    font-size: 22px;
  }

  .management-toolbar {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-options {
    width: 100%;
  }

  .filter-options select {
    flex: 1;
  }

  .login-split {
    flex-direction: column;
  }

  .login-panel {
    padding: 40px 30px;
    min-height: 100%;
  }

  .login-panel-inner h1 {
    font-size: 28px;
  }

  .login-form-panel {
    width: 100%;
    padding: 40px 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content,
  .modal-content-lg {
    width: 95%;
    max-width: 100%;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .action-btn {
    width: 100%;
    justify-content: center;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .management-table th,
  .management-table td {
    padding: 10px;
    font-size: 12px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    margin: 0 auto;
  }

  .dashboard-footer {
    flex-direction: column;
    gap: 15px;
  }

  .admin-user-info {
    display: none;
  }
}

@media (max-width: 480px) {
  .admin-topbar {
    padding: 0 12px;
  }

  .topbar-title h1 {
    font-size: 16px;
  }

  .admin-content {
    padding: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  .login-form-panel {
    padding: 30px 20px;
  }

  .login-panel {
    padding: 30px 20px;
  }

  .admin-user-chip {
    padding: 4px;
  }

  .admin-user-chip .admin-user-info {
    display: none;
  }

  .status-badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .badge {
    font-size: 11px;
  }
}

/* ========================
   KANBAN BOARD
   ======================== */

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
}

.kanban-col {
  flex: 0 0 260px;
  background: #f0f2f5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px 12px 0 0;
  border-top: 4px solid var(--col-color);
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
}

.kanban-col-title i {
  color: var(--col-color);
  font-size: 14px;
}

.kanban-count {
  background: var(--col-color);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
}

.kanban-cards {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-empty {
  text-align: center;
  padding: 30px 10px;
  color: #bbb;
  font-size: 13px;
}

.kanban-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  color: #ddd;
}

.kanban-card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.kanban-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.kanban-order-id {
  font-weight: 700;
  font-size: 12px;
  color: var(--primary-dark);
  letter-spacing: 0.3px;
}

.kanban-date {
  font-size: 11px;
  color: #aaa;
}

.kanban-customer,
.kanban-equipment {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-customer i,
.kanban-equipment i {
  color: #bbb;
  width: 14px;
  font-size: 11px;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.kanban-amount {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  flex: 1;
}

.kanban-days {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

.kanban-days i {
  font-size: 10px;
}

.kanban-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.kbtn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}

.kbtn-view {
  background: #e0f0ff;
  color: var(--info-color);
}

.kbtn-view:hover {
  background: var(--info-color);
  color: white;
}

.kbtn-delete {
  background: #ffebee;
  color: var(--danger-color);
}

.kbtn-delete:hover {
  background: var(--danger-color);
  color: white;
}

@media (max-width: 768px) {
  .kanban-board {
    flex-direction: column;
  }

  .kanban-col {
    flex: none;
    width: 100%;
    max-height: none;
  }
}
