:root {
  --bs-primary: #7C3AED;
  --bs-primary-rgb: 124, 58, 237;
  --bs-secondary: #6c757d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fb 0%, #f0f4f8 100%);
  color: #333;
}

/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7C3AED !important;
  letter-spacing: -0.5px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
  display: block;
  margin: -5px 0;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #7C3AED !important;
}

.dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dropdown-item:hover {
  background: #F3E8FF;
  color: #7C3AED;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
  transform: translateY(-4px);
}

.card-header {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: white;
  border: none;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: #f8f9fb;
  border: none;
  padding: 1rem 1.5rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 100%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
}

.tool-share {
  border-color: #e5e7eb !important;
}

.tool-share .btn {
  min-width: 112px;
}

/* Badges */
.badge {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
}

.badge.bg-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
}

.badge.bg-secondary {
  background: #6c757d !important;
}

/* Forms */
.form-control, .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.1);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 10px;
  border-left: 4px solid;
}

.alert-info {
  background: #F3E8FF;
  border-left-color: #7C3AED;
  color: #5B21B6;
}

.alert-warning {
  background: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

.alert-success {
  background: #d4edda;
  border-left-color: #28a745;
  color: #155724;
}

/* Tables */
.table {
  border-radius: 10px;
  overflow: hidden;
}

.table th {
  background: #f0f4f8;
  border: none;
  font-weight: 600;
  padding: 1rem;
}

.table td {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #333;
  font-weight: 700;
  margin-bottom: 0.875rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Links */
a {
  color: #7C3AED;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #5B21B6;
  text-decoration: underline;
}

/* Hero section */
.hero, .hero-section {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .navbar-logo { height: 40px; }
}
