@charset "UTF-8";

/* src/styles.scss */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.125rem;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}
.btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn-cancel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-cancel:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-danger {
  background: #EF4444;
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #DC2626;
}
.btn-sm {
  padding: 4px 16px;
  font-size: 0.75rem;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal-card {
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}
.modal-error {
  padding: 12px 16px;
  margin: 0 24px 16px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  color: var(--error-text);
  font-size: 0.875rem;
}
.form-group {
  margin-bottom: 1.125rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}
.form-group input.ng-invalid.ng-touched,
.form-group textarea.ng-invalid.ng-touched,
.form-group select.ng-invalid.ng-touched {
  border-color: #EF4444;
}
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group .field-error {
  font-size: 0.75rem;
  color: var(--error-text);
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.checkbox-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.table-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 700px;
}
.table-container table thead th {
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  font-weight: 600;
}
.table-container table tbody tr {
  transition: background 0.2s;
}
.table-container table tbody tr:hover {
  background: var(--bg-hover);
}
.table-container table tbody tr td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.875rem;
}
.actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}
.actions-cell .btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
  padding: 0;
}
.actions-cell .btn-action svg {
  width: 15px;
  height: 15px;
}
.actions-cell .btn-action:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.actions-cell .btn-action.delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #fecaca;
  color: #ef4444;
}
.actions-cell .btn-action.view:hover,
.actions-cell .btn-action.edit:hover,
.actions-cell .btn-action.url:hover {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.actions-cell .btn-action.revoke {
  width: auto;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--error-text);
  border-color: var(--error-border);
}
.actions-cell .btn-action.revoke:hover {
  background: rgba(239, 68, 68, 0.15);
}
.actions-cell .btn-action {
}
.actions-cell .btn-action.off {
  opacity: 0.4;
  color: var(--text-secondary);
  border-color: var(--border-light);
}
.actions-cell {
}
.actions-cell .toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
  flex-shrink: 0;
}
.actions-cell .toggle-switch.active {
  background: var(--accent);
}
.actions-cell .toggle-switch.inactive {
  background: #ef4444;
}
.actions-cell .toggle-switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  top: 3px;
  transition: left 0.3s;
}
.actions-cell .toggle-switch.active::after {
  left: 19px;
}
.actions-cell .toggle-switch.inactive::after {
  left: 3px;
}
tr.row-disabled td {
  opacity: 0.5;
  color: var(--text-secondary);
}
.perm-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.perm-icons .perm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--accent);
}
.perm-icons .perm-icon svg {
  width: 15px;
  height: 15px;
}
.perm-icons .perm-icon.off {
  opacity: 0.25;
  color: var(--text-secondary);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge.active,
.badge.success {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}
.badge.inactive,
.badge.error {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}
.badge.purple {
  background: var(--badge-purple-bg);
  color: var(--badge-purple-text);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.metrics-grid .metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.metrics-grid .metric-card .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}
.metrics-grid .metric-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.page-container {
  padding: 24px 32px;
  background-color: var(--bg-base);
  min-height: 100vh;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 48px 0;
  font-size: 1rem;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
:root {
  --primary-50: #F5F0F6;
  --primary-100: #E8DDE9;
  --primary-200: #D1BBD4;
  --primary-300: #BA99BE;
  --primary-400: #9D6DA4;
  --primary-500: #703D79;
  --primary-600: #5E3265;
  --primary-700: #4B2851;
  --primary-800: #391E3D;
  --primary-900: #261429;
  --neutral-50: #F8F8F9;
  --neutral-100: #ECECED;
  --neutral-200: #D8D9DA;
  --neutral-300: #B5B6B8;
  --neutral-400: #8E8F91;
  --neutral-500: #58595B;
  --neutral-600: #4A4B4D;
  --neutral-700: #3B3C3E;
  --neutral-800: #2D2E2F;
  --neutral-900: #1E1F20;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  --shadow-xs: 0px 1px 2px 0px #0000000D;
  --shadow-sm: 0px 1px 2px -1px #0000001A, 0px 1px 3px 0px #0000001A;
  --shadow-md: 0px 2px 4px -2px #0000001A, 0px 4px 6px -1px #0000001A;
  --shadow-lg: 0px 4px 6px -4px #0000001A, 0px 10px 15px -3px #0000001A;
  --shadow-xl: 0px 8px 10px -6px #0000001A, 0px 20px 25px -5px #0000001A;
  --bg-base: #F8F8F9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-sidebar: #58595B;
  --bg-navbar: #ECECED;
  --bg-input: #ffffff;
  --bg-hover: #ECECED;
  --text-primary: #2D2E2F;
  --text-secondary: #58595B;
  --text-muted: #8E8F91;
  --border-color: #D8D9DA;
  --border-light: #ECECED;
  --accent: #703D79;
  --accent-hover: #5E3265;
  --accent-text: #703D79;
  --accent-light: rgba(112, 61, 121, 0.1);
  --accent-surface: #703D79;
  --error-bg: #fef2f2;
  --error-text: #b91c1c;
  --error-border: #fecaca;
  --success-bg: #f0fdf4;
  --success-text: #15803d;
  --success-border:#bbf7d0;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --warning-border:#fde68a;
  --info-bg: #eff6ff;
  --info-text: #1e40af;
  --info-border: #bfdbfe;
  --badge-green-bg: #dcfce7;
  --badge-green-text: #15803d;
  --badge-red-bg: #fee2e2;
  --badge-red-text: #991b1b;
  --badge-purple-bg: #f3e8ff;
  --badge-purple-text: #6d28d9;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-base);
  color: var(--text-primary);
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.app-sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  width: 240px;
  margin: 16px;
  background: var(--bg-sidebar);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.sidebar-brand {
  padding: 0 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
}
.sidebar-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.sidebar-brand .brand-user {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}
.sidebar-brand .brand-user .brand-role {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 0 12px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 12px;
  position: relative;
  transition: all 0.15s;
}
.sidebar-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.sidebar-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.13);
}
.sidebar-nav a.active .nav-icon {
  color: white;
}
.sidebar-nav a.active::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: #FFFFFF;
  border-radius: 4px;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.section-num {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}
.sidebar-nav a.active .section-num {
  background: var(--accent, #703D79);
  color: #fff;
}
.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.sidebar-back-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.nav-label {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-footer {
  padding: 16px 12px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-footer a,
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  transition: color 0.15s;
}
.sidebar-footer a:hover,
.sidebar-toggle:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-collapsed .app-sidebar {
  width: 72px;
}
.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}
.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
  gap: 0;
}
.sidebar-collapsed .sidebar-nav {
  padding: 0 8px;
}
.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
  padding: 12px;
  gap: 0;
}
.sidebar-collapsed .sidebar-nav a.active::after {
  right: -8px;
}
.sidebar-collapsed .sidebar-footer {
  padding: 16px 8px;
}
.sidebar-collapsed .sidebar-footer a,
.sidebar-collapsed .sidebar-toggle {
  justify-content: center;
  padding: 12px;
  gap: 0;
}
.sidebar-collapsed .sidebar-back-btn {
  justify-content: center;
  padding: 12px;
  gap: 0;
}
.sidebar-collapsed .sidebar-back-btn .nav-label {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}
.app-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  min-width: 0;
}
@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
  }
  .app-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    padding: 16px 0;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 16px;
  }
  .sidebar-nav a {
    white-space: nowrap;
    border-bottom: 3px solid transparent;
  }
  .sidebar-nav a.active {
    border-bottom-color: white;
  }
  .sidebar-nav a.active::after {
    display: none;
  }
  .sidebar-footer {
    display: none;
  }
  .app-main {
    padding: 16px;
  }
  .table-container {
    padding: 16px;
    overflow-x: auto;
  }
}
@media (max-width: 480px) {
  .app-main {
    padding: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
