/* Feedback Manager - Handcrafted Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #0d6efd 100%);
  --secondary-accent: #10b981;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #818cf8;
  --sidebar-width: 270px;
  --sidebar-bg: #0b0f19;
  --sidebar-text: #94a3b8;
  --sidebar-active-bg: rgba(99, 102, 241, 0.12);
  --sidebar-active-text: #818cf8;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 8px 16px -6px rgba(15, 23, 42, 0.05);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
}

[data-bs-theme="dark"] {
  --bg-body: #080d1a;
  --bg-card: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --border-focus: #6366f1;
  --navbar-bg: rgba(15, 23, 42, 0.85);
  --sidebar-bg: #050811;
  --sidebar-text: #94a3b8;
  --sidebar-active-bg: rgba(99, 102, 241, 0.18);
  --sidebar-active-text: #a5b4fc;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Layout Structure */
#wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

/* Sidebar Design */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

#sidebar .sidebar-header {
  padding: 1.15rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.logo-brand-avatar {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  min-width: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-brand-avatar:hover {
  transform: scale(1.05) rotate(3deg);
}

#sidebar ul.components {
  padding: 1.25rem 0.85rem;
  flex-grow: 1;
}

#sidebar ul li {
  margin-bottom: 0.3rem;
}

#sidebar ul li a {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar ul li a i {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

#sidebar ul li a:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

#sidebar ul li a:hover i {
  transform: translateX(2px);
  color: #818cf8;
}

#sidebar ul li.active a {
  color: var(--sidebar-active-text);
  background: var(--sidebar-active-bg);
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 #6366f1;
}

#sidebar ul li.active a i {
  color: #818cf8;
}

#content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Style */
.top-navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  z-index: 999;
}

/* Craftsmanship Cards */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-custom:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

/* Handcrafted Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Buttons Polish */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
  border-color: var(--border-color);
}

/* Custom Table Styling */
.table-custom {
  margin-bottom: 0;
}

.table-custom th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 2px solid var(--border-color);
  padding: 0.85rem 1rem;
}

[data-bs-theme="dark"] .table-custom th {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-custom td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr {
  transition: background-color 0.15s ease;
}

.table-custom tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04);
}

/* Badges & Pills */
.badge-status {
  padding: 0.4em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-vertical {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.3em 0.6em;
  font-size: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] .badge-vertical {
  background-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

/* Password Strength Meter */
.strength-bar-container {
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-requirements {
  font-size: 0.825rem;
  margin-top: 10px;
}

.req-item {
  display: inline-block;
  margin-right: 12px;
  color: var(--text-muted);
}

.req-item.valid {
  color: #10b981;
  font-weight: 600;
}

/* Form Control Polish */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-family);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Skeleton Loading Styling */
.skeleton {
  background: linear-gradient(90deg, rgba(190,190,190,0.15) 25%, rgba(120,120,120,0.25) 37%, rgba(190,190,190,0.15) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

/* Print View Styles */
@media print {
  #sidebar, .top-navbar, .btn, .no-print {
    display: none !important;
  }
  #content {
    margin: 0;
    padding: 0;
    width: 100%;
  }
}
