/* Modern SaaS Dashboard Styles */

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
}

/* Sidebar Styles */
#sidebar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  z-index: 1050;
  transition: left 0.3s;
}

#sidebar.show {
  left: 0;
}

.sidebar-link {
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-link:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar-link.active {
  background-color: rgba(59, 130, 246, 0.2);
  border-left: 4px solid #3b82f6;
}

.sidebar-link i {
  width: 20px;
}

/* Overlay */
#sidebar-overlay.show {
  opacity: 0.5;
  visibility: visible;
}

/* Main Content */
#main-content.sidebar-open {
  margin-left: 250px;
}

/* Desktop: Show sidebar by default */
@media (min-width: 769px) {
  #sidebar {
    left: 0;
  }
  #main-content {
    margin-left: 250px;
  }
  #sidebar-toggle {
    display: none;
  }
}

/* Mobile: Hide sidebar by default */
@media (max-width: 768px) {
  #sidebar {
    left: -250px;
  }
  #main-content.sidebar-open {
    margin-left: 0;
  }
  #sidebar-toggle {
    display: block;
  }
}

/* Navbar */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}

/* Stats Cards */
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.stats-card.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card.inactive {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card.products {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-card .card-icon {
  font-size: 2.5rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.stats-card .card-title {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.stats-card .card-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

/* License Table */
.license-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.license-table thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
  padding: 16px;
}

.license-table tbody tr {
  transition: all 0.2s ease;
}

.license-table tbody tr:hover {
  background-color: #f1f5f9;
  transform: scale(1.01);
}

.license-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-inactive {
  background-color: #fef2f2;
  color: #991b1b;
}

.btn-copy {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: 6px;
}

.btn-copy:hover {
  background-color: #e2e8f0;
  color: #334155;
  transform: scale(1.1);
}

.btn-action {
  margin-right: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Search Bar */
.search-container {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.search-input {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes counter {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.counter-animation {
  animation: counter 0.8s ease-out;
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    left: -100%;
  }

  #main-content.sidebar-open {
    margin-left: 0;
  }

  .stats-card {
    margin-bottom: 16px;
  }

  .license-table {
    font-size: 0.875rem;
  }

  .license-table td, .license-table th {
    padding: 12px;
  }
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateX(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
