/* SnapLink - Global Styles */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5a4bd1;
  --secondary: #a855f7;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --dark: #2d3436;
  --light: #f8f9fa;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: #f5f6fa;
}

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

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

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.card {
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
}

/* RTL Support */
.rtl .sidebar { right: 0; left: auto; }
.rtl .main-content { margin-right: 260px; margin-left: 0; }
.rtl .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
.rtl .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
.rtl .text-start { text-align: right !important; }
.rtl .text-end { text-align: left !important; }

/* Hero section */
.hero-section {
  min-height: 500px;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }

/* Badge */
.badge { font-weight: 500; }

/* Toast / Alert animations */
.alert { border-radius: 10px; }

/* Link items in pages */
.link-item {
  background: #f8f9fa;
  color: #333;
  transition: background 0.2s;
}
.link-item:hover {
  background: var(--primary);
  color: white;
}

/* Page themes */
.page-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1rem;
}
.page-theme-default { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.page-theme-default .page-content { background: white; border-radius: 16px; padding: 2rem; }
.page-theme-dark { background: #1a1a2e; color: white; }
.page-theme-dark .page-content { background: #16213e; border-radius: 16px; padding: 2rem; }
.page-theme-minimal { background: #ffffff; }
.page-theme-minimal .page-content { padding: 2rem; }

@media (max-width: 768px) {
  .hero-section { min-height: auto; }
  .hero-section .display-4 { font-size: 2rem; }
}
