/* PCS License Manager - Custom Styles */

:root {
  --sidebar-width: 240px;
  --primary: #4361ee;
  --primary-dark: #3a56d4;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}

/* Navbar */
.navbar { box-shadow: 0 2px 4px rgba(0,0,0,.08); z-index: 1040; }
.navbar.bg-primary { background-color: var(--primary) !important; }

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - 56px);
  background: #fff;
  border-right: 1px solid #e0e0e0;
  flex-shrink: 0;
  transition: transform .2s ease;
}

@media (max-width: 767.98px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    min-height: 100vh;
    transform: translateX(-100%);
    box-shadow: 4px 0 12px rgba(0,0,0,.15);
  }
  #sidebar.show { transform: translateX(0); }
  #sidebarOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1045;
  }
  #sidebarOverlay.d-none { display: none !important; }
}

.sidebar-link {
  border-radius: 8px;
  padding: 10px 14px;
  color: #333;
  font-weight: 500;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.sidebar-link:hover { background: #f0f2f5; color: var(--primary); }
.sidebar-link.active { background: var(--primary); color: #fff !important; }
.sidebar-link i { font-size: 1.1rem; }

/* Main content */
#mainContent { min-height: calc(100vh - 56px); }

/* Auth pages */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #7209b7 100%);
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.auth-card h2 { font-weight: 700; margin-bottom: 0.25rem; }
.auth-card .subtitle { color: #6c757d; margin-bottom: 1.5rem; }

/* Dashboard stat cards */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { color: #6c757d; font-size: .85rem; }

/* Cards & panels */
.content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 1.5rem;
}

/* Page headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header h4 { font-weight: 700; margin-bottom: 0; }

/* Tables */
.table th {
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6c757d;
  user-select: none;
}
.table td { vertical-align: middle; }
.data-row[role="button"]:hover { background: #f8f9fa; cursor: pointer; }

/* Forms */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 2rem;
  max-width: 700px;
}

/* Loading overlay */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#loadingOverlay.d-none { display: none !important; }

/* Trial request page */
.trial-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  padding: 2rem 1rem;
}
.trial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Badge */
.badge { font-weight: 500; }

/* Responsive */
@media (max-width: 575.98px) {
  .auth-card, .trial-card { padding: 1.5rem; margin: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .content-card, .form-card { padding: 1rem; }
}
