/* Quilombo Digital - Custom Theme */
/* Cores inspiradas na cultura afro-brasileira e quilombola */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

:root {
  --q-primary: #1e40af;
  --q-primary-rgb: 30, 64, 175;
  --q-secondary: #f59e0b;
  --q-secondary-rgb: 245, 158, 11;
  --q-accent: #ef4444;
  --q-accent-rgb: 239, 68, 68;
  --q-success: #10b981;
  --q-success-rgb: 16, 185, 129;
  --q-warning: #f59e0b;
  --q-warning-rgb: 245, 158, 11;
  --q-info: #06b6d4;
  --q-info-rgb: 6, 182, 212;
  --q-dark: #0f172a;
  --q-dark-rgb: 15, 23, 42;
  --q-light: #f8fafc;
  --q-light-rgb: 248, 250, 252;
}

/* Typography - Sober and Professional */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.text-muted {
  opacity: 0.7;
}

/* Body background pattern */
body {
  background-color: #f8f9fa;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
}

/* Hide app-topstrip */
.app-topstrip {
  display: none !important;
}

/* Fix header and sidebar positioning - remove 72px gap */
.app-header,
.left-sidebar {
  top: 0 !important;
}

.body-wrapper,
.page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove any fixed height/spacing from sidebar */
.left-sidebar.with-vertical {
  top: 0 !important;
}

.brand-logo {
  margin-top: 0 !important;
  padding-top: 1rem !important;
}

/* Page wrapper with subtle texture */
.page-wrapper {
  position: relative;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DAA520' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.body-wrapper {
  position: relative;
  z-index: 1;
}

/* Override Bootstrap primary colors */
.btn-primary {
  background: #1e40af;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.btn-outline-primary {
  color: var(--q-primary);
  border-color: var(--q-primary);
}

.btn-outline-primary:hover {
  background-color: var(--q-primary);
  border-color: var(--q-primary);
}

.bg-primary {
  background: #1e40af !important;
}

.bg-primary-subtle {
  background-color: rgba(30, 64, 175, 0.08) !important;
}

.text-primary {
  color: #1e40af !important;
}

/* Sidebar customization - Professional Dark */
.left-sidebar {
  background: #0f172a;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-nav .sidebar-item .sidebar-link {
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 2px 8px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.9rem;
}

.sidebar-nav .sidebar-item .sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-nav .sidebar-item .sidebar-link.active {
  background: #1e40af;
  color: white;
  font-weight: 600;
}

.sidebar-nav .nav-small-cap {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  padding: 12px 20px 6px;
}

.brand-logo h3 {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Card styling - Clean and Professional */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  background: white;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.card-title {
  color: #0f172a;
  font-weight: 600;
}

/* Dashboard welcome card */
.card.bg-primary-subtle {
  background: #1e40af !important;
  border: none;
}

.card.bg-primary-subtle h4 {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 600;
}

.card.bg-primary-subtle p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
}

/* Dashboard stats cards */
.align-middle h2 {
  font-size: 2rem;
  color: #0f172a;
  font-weight: 700;
}

/* Dashboard stats cards */
.card.bg-success-subtle {
  background: rgba(5, 150, 105, 0.08) !important;
}

.card.bg-warning-subtle {
  background: rgba(217, 119, 6, 0.08) !important;
}

.card.bg-info-subtle {
  background: rgba(8, 145, 178, 0.08) !important;
}

.card.bg-warning-subtle {
  background: rgba(245, 158, 11, 0.1) !important;
  border-left: 4px solid #f59e0b;
}
  border-left: 4px solid var(--q-warning);
}

.card.bg-info-subtle {
  background: rgba(6, 182, 212, 0.1) !important;
  border-left: 4px solid #06b6d4;
}

/* Header/Navbar */
.app-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Table styling */
.table thead {
  background: #0f172a;
}

.table thead th {
  color: white !important;
  font-weight: 600;
  border: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

/* Badge customization */
.badge.bg-success {
  background: #059669 !important;
}

.badge.bg-warning {
  background: #d97706 !important;
}

.badge.bg-info {
  background: #0891b2 !important;
}

.badge.bg-danger {
  background: #dc2626 !important;
}

.badge.bg-primary {
  background: #1e40af !important;
}

/* Modal styling */
.modal-header {
  background: #0f172a;
  color: white;
}

.modal-header .modal-title {
  color: white;
  font-weight: 600;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

/* Form controls */
.form-control:focus,
.form-select:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.15);
}

/* Login page */
.authentication-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 50px;
}

.authentication-card h2 {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.authentication-card .text-muted {
  color: #64748b !important;
  font-size: 0.95rem;
}

/* Icon backgrounds */
.bg-primary.rounded-circle,
.bg-primary-subtle.rounded-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* Event cards */
.bg-primary-subtle.text-primary,
.bg-warning-subtle.text-warning,
.bg-success-subtle.text-success,
.bg-info-subtle.text-info {
  border-radius: 8px;
  padding: 10px;
}

/* Map container */
#map {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* Profile image */
.profile-image {
  border: 3px solid #e2e8f0;
}

/* List group active state */
.list-group-item.active {
  background: #1e40af;
  border-color: #1e40af;
}

/* Body background - clean and professional */
body {
  background-color: #f8fafc;
}

/* Page wrapper */
.page-wrapper {
  position: relative;
}

.body-wrapper {
  position: relative;
  z-index: 1;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Animations - Subtle and Professional */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card {
    margin-bottom: 16px;
  }
  
  .sidebar-nav .sidebar-item .sidebar-link {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
