/* NELB Admin - Facebook Light Theme */
/* Clean, Modern, Familiar Design */

:root {
  /* Facebook Light Color Palette */
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f5;
  --bg-card: #ffffff;
  --bg-hover: #f2f3f5;
  
  --fb-blue: #1877f2;
  --fb-blue-hover: #166fe5;
  --fb-blue-light: #e7f3ff;
  
  --accent-primary: #1877f2;
  --accent-success: #42b72a;
  --accent-warning: #f7b928;
  --accent-danger: #f02849;
  --accent-info: #1877f2;
  
  --text-primary: #050505;
  --text-secondary: #65676b;
  --text-muted: #8a8d91;
  
  --border-color: #dddfe2;
  --border-hover: #ced0d4;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Clean Facebook-style Background */
body::before {
  content: none;
}

body::after {
  content: none;
}

/* Modern Navbar */
.navbar {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fb-blue) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

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

.nav-link i {
  margin-right: 0.5rem;
  opacity: 0.8;
}

/* Facebook-Style Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: none;
}

.card::after {
  content: none;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Facebook-Style Form Controls */
.form-control, .form-select, textarea {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus, textarea:focus {
  background: var(--bg-secondary) !important;
  border-color: var(--fb-blue) !important;
  box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

/* Modern Buttons */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--fb-blue);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--fb-blue-hover);
}

.btn-success {
  background: var(--accent-success);
  color: white;
  border: none;
}

.btn-success:hover {
  background: #36a420;
}

.btn-outline-primary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: var(--bg-hover);
}

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

.btn-outline-success {
  border: 1px solid var(--accent-success);
  color: var(--accent-success);
  background: transparent;
}

.btn-outline-success:hover {
  background: rgba(66, 183, 42, 0.1);
  color: var(--accent-success);
}

.btn-outline-light {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.btn-outline-light:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-outline-danger {
  border: 2px solid var(--accent-danger);
  color: var(--accent-danger);
  background: transparent;
}

.btn-outline-danger:hover {
  background: var(--accent-danger);
  color: white;
  transform: translateY(-2px);
}

/* Button Groups */
.btn-group {
  box-shadow: var(--shadow-md);
  border-radius: 10px;
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Tables */
.table {
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.table thead th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border: none;
}

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

.table tbody tr:hover {
  background: var(--bg-hover);
}

.table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border: none;
}

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.badge-feature {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Modals */
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.btn-close:hover {
  opacity: 1;
}

/* Premium Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale {
  animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-success {
  animation: successPulse 1s ease-out;
}

/* Loading States */
.spinner-border {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: white;
}

/* Success Indicators */
.text-success {
  color: var(--accent-success) !important;
}

.text-danger {
  color: var(--accent-danger) !important;
}

.text-warning {
  color: var(--accent-warning) !important;
}

.text-info {
  color: var(--accent-info) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Icon Enhancements */
.fa-solid, .fa-regular, .fa-brands {
  transition: all 0.2s ease;
}

.btn:hover .fa-solid,
.btn:hover .fa-regular,
.btn:hover .fa-brands {
  transform: scale(1.1);
}

/* Container Enhancements */
.container, .container-fluid {
  position: relative;
  z-index: 1;
}

/* Page Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.h4 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Small Text */
small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Links */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: none;
}

/* Focus States */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-nav {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .card {
    border-radius: 12px;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  animation: fabPulse 2s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 10px 60px rgba(99, 102, 241, 0.6);
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  min-width: 300px;
  animation: slideInRight 0.4s ease-out;
}

.toast-success {
  border-left: 4px solid var(--accent-success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.toast-error {
  border-left: 4px solid var(--accent-danger);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.toast-info {
  border-left: 4px solid var(--accent-info);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status-published {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-draft {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Motivational Quote Box */
.quote-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 6rem;
  color: rgba(99, 102, 241, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-box p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.quote-box cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 10px;
  background: rgba(20, 27, 58, 0.6);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 10px;
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h4 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .navbar, .btn, .modal, .fab {
    display: none;
  }
}
