/* Woodex Admin Custom Styles */

/* Brand colors */
:root {
  --woodex-primary: #8b5a42;
  --woodex-secondary: #d4af37;
  --woodex-accent: #6b4423;
  --woodex-success: #4caf50;
  --woodex-warning: #ff9800;
  --woodex-error: #f44336;
}

/* Center sidebar logo and remove border below it */
.bg-transparent.border-transparent.flex.font-semibold.grow {
  justify-content: center !important;
}
.border-b.border-base-200.flex.gap-3.items-center.mb-5 {
  border-bottom: none !important;
}

/* Custom header styling */
.unfold-header {
  background: linear-gradient(135deg, var(--woodex-primary), var(--woodex-accent));
}

/* Custom sidebar styling */
.unfold-sidebar {
  background-color: #f8f9fa;
  border-right: 1px solid #e0e0e0;
}

.unfold-sidebar .unfold-navigation-item:hover {
  background-color: rgba(139, 90, 66, 0.1);
}

.unfold-sidebar .unfold-navigation-item.active {
  background-color: rgba(139, 90, 66, 0.15);
  border-left: 3px solid var(--woodex-primary);
}

/* Custom dashboard styling */
.unfold-dashboard-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.unfold-dashboard-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Custom form styling */
.unfold-form .form-row {
  margin-bottom: 1rem;
}

.unfold-form .form-control {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 0.75rem;
}

.unfold-form .form-control:focus {
  border-color: var(--woodex-primary);
  box-shadow: 0 0 0 2px rgba(139, 90, 66, 0.2);
}

/* Custom button styling */
.btn-woodex-primary {
  background-color: var(--woodex-primary);
  border-color: var(--woodex-primary);
  color: white;
}

.btn-woodex-primary:hover {
  background-color: var(--woodex-accent);
  border-color: var(--woodex-accent);
}

/* Table styling */
.unfold-table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unfold-table th {
  background-color: var(--woodex-primary);
  color: white;
  font-weight: 600;
}

.unfold-table tbody tr:nth-child(even) {
  background-color: rgba(139, 90, 66, 0.05);
}

.unfold-table tbody tr:hover {
  background-color: rgba(139, 90, 66, 0.1);
}

/* Stats cards */
.stats-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stats-card .stats-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--woodex-primary);
  margin-bottom: 0.5rem;
}

.stats-card .stats-label {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-btn-view {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

.action-btn-edit {
  background-color: #fff3e0;
  color: #f57c00;
  border: 1px solid #ffcc02;
}

.action-btn-delete {
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
  .unfold-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .unfold-sidebar.show {
    transform: translateX(0);
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .action-buttons {
    justify-content: center;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .unfold-sidebar {
    background-color: #2d3748;
    border-right-color: #4a5568;
  }
  
  .stats-card {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .stats-card .stats-label {
    color: #a0aec0;
  }
}