/* Waffer Admin Theme */
:root {
  --waffer-green: #10b981;
  --waffer-teal: #0d9488;
  --waffer-red: #ef4444;
}

/* Header band */
.waffer-admin-header {
  background: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.waffer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.waffer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.waffer-right {
  text-align: right;
}
.waffer-right .welcome {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}
.waffer-right .brand {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--waffer-green);
}

/* Dashboard cards tweaks */
.card.waffer-kpi {
  border: none;
  border-radius: 14px;
}

/* Login page wrapper tweak */
.waffer-login h1 { color: var(--waffer-green); }


/* Price fields styling with SAR indicator */
.field-money {
  position: relative;
}

.field-money .input-group {
  width: 100%;
}

.field-money .input-group input {
  border-left: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--waffer-green);
  padding-left: 0.5rem;
}

.field-money .input-group-text {
  background-color: #f8f9fa !important;
  border-right: 0 !important;
}

.field-money .form-help {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
  border-left: 4px solid var(--waffer-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-money .form-help img {
  flex-shrink: 0;
}

/* ========================================
   PROFESSIONAL CRUD PAGES STYLING
   ======================================== */

/* Page Container */
.content-panel {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

/* Page Header */
.content-header-wrapper {
  background: #ffffff;
  padding: 24px;
  border-bottom: 2px solid #f3f4f6;
  border-radius: 12px 12px 0 0;
}

.content-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* Action Buttons */
.global-actions .btn,
.content-header .btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--waffer-green) 0%, #008556 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* Search Bar */
.content-search {
  margin: 20px 0;
}

.content-search .form-control {
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.content-search .form-control:focus {
  border-color: var(--waffer-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  outline: none;
}

/* Data Table */
.table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.table thead th {
  color: #374151;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px;
  border: none;
}

.table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f9fafb;
}

.table tbody td {
  padding: 16px;
  vertical-align: middle;
  color: #1f2937;
  font-size: 14px;
}

/* Table Actions */
.table .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  margin: 0 2px;
}

/* Pagination */
.pagination {
  margin-top: 24px;
  justify-content: center;
}

.page-link {
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 10px 16px;
  margin: 0 4px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-link:hover {
  background-color: #f9fafb;
  border-color: var(--waffer-green);
  color: var(--waffer-green);
}

.page-item.active .page-link {
  background-color: var(--waffer-green);
  border-color: var(--waffer-green);
  color: white;
}

/* Form Styling (Create/Edit Pages) */
.form-panel {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.form-label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.form-control,
.form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--waffer-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  color: #6b7280;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

/* Field Groups */
.field-group {
  margin-bottom: 24px;
}

.field-group:last-child {
  margin-bottom: 0;
}

/* Form Actions (Save/Cancel buttons) */
.form-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f3f4f6;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Alert Messages */
.alert {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  border: none;
  border-left: 4px solid;
}

.alert-success {
  background-color: #d1fae5;
  border-left-color: var(--waffer-green);
  color: #065f46;
}

.alert-danger {
  background-color: #fee2e2;
  border-left-color: #ef4444;
  color: #991b1b;
}

.alert-info {
  background-color: #dbeafe;
  border-left-color: #3b82f6;
  color: #1e40af;
}

/* Empty State */
.datagrid-empty {
  padding: 60px 20px;
  text-align: center;
  color: #9ca3af;
}

.datagrid-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Filters */
.filter-panel {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .content-header-wrapper {
    padding: 16px;
  }

  .form-panel {
    padding: 20px;
  }

  .table {
    font-size: 13px;
  }

  .table thead th,
  .table tbody td {
    padding: 12px 8px;
  }
}


