﻿.oxy-shell {
  display: flex;
  min-height: 100vh;
  background: var(--oxy-surface);
}

.oxy-sidebar {
  width: var(--oxy-sidebar-expanded);
  flex-shrink: 0;
  background: var(--oxy-surface-lowest);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.oxy-shell.is-compact .oxy-sidebar {
  width: var(--oxy-sidebar-compact);
}

.oxy-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.75rem;
  min-height: 72px;
  background: var(--oxy-surface-lowest);
}

.oxy-sidebar-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.oxy-sidebar-brand img {
  max-width: 180px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.oxy-shell.is-compact .oxy-sidebar-brand {
  padding: 0.75rem 0.5rem;
}

.oxy-shell.is-compact .oxy-sidebar-brand img {
  max-width: 48px;
  max-height: 40px;
}

.oxy-nav {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.5rem;
  flex: 1;
  overflow-y: auto;
}

.oxy-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--oxy-radius);
  color: var(--oxy-on-surface);
  margin-bottom: 0.25rem;
}

.oxy-nav a:hover {
  background: var(--oxy-surface-low);
}

.oxy-nav a.active {
  background: color-mix(in srgb, var(--oxy-primary-container) 12%, var(--oxy-surface-lowest));
  color: var(--oxy-primary-container);
  font-weight: 600;
}

.oxy-nav a img,
.oxy-nav a svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.oxy-nav-label {
  white-space: nowrap;
  overflow: hidden;
}

.oxy-shell.is-compact .oxy-nav-label {
  display: none;
}

.oxy-shell.is-compact .oxy-nav a {
  justify-content: center;
  padding: 0.75rem;
}

.oxy-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.oxy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--oxy-surface-lowest);
  position: sticky;
  top: 0;
  z-index: 15;
}

.oxy-topbar-left,
.oxy-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.oxy-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--oxy-surface-low);
}

.oxy-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--oxy-muted);
  text-decoration: none;
}

.oxy-lang-btn:hover {
  color: var(--oxy-on-surface);
}

.oxy-lang-btn.active {
  background: var(--oxy-primary-container);
  color: #fff;
}

.oxy-icon-btn {
  border: none;
  background: var(--oxy-surface-low);
  color: var(--oxy-on-surface);
  width: 40px;
  height: 40px;
  border-radius: var(--oxy-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oxy-icon-btn:hover {
  background: color-mix(in srgb, var(--oxy-primary-container) 15%, var(--oxy-surface-low));
}

.oxy-breadcrumb {
  font-size: 0.9rem;
  color: var(--oxy-muted);
}

.oxy-breadcrumb strong {
  color: var(--oxy-on-surface);
  font-weight: 600;
}

.oxy-content {
  padding: 1.5rem 1.75rem 2.5rem;
}

.oxy-page-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  color: var(--oxy-primary);
  letter-spacing: -0.02em;
}

.oxy-page-header p {
  margin: 0 0 1.25rem;
  color: var(--oxy-muted);
  font-size: 0.95rem;
}

.oxy-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.oxy-stat-card {
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  padding: 1.25rem;
}

.oxy-stat-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--oxy-muted);
}

.oxy-stat-card .value {
  font-size: 2rem;
  color: var(--oxy-primary-container);
  margin-top: 0.35rem;
  font-weight: 700;
}

.oxy-table-wrap {
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  overflow: auto;
}

.oxy-table {
  width: 100%;
  border-collapse: collapse;
}

.oxy-table th,
.oxy-table td {
  padding: 0.85rem 1rem;
  text-align: left;
}

.oxy-table thead th {
  background: var(--oxy-surface-low);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--oxy-muted);
  font-weight: 600;
}

.oxy-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--oxy-surface-low) 55%, transparent);
}

.oxy-btn {
  border: none;
  border-radius: var(--oxy-radius);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--oxy-secondary-container);
  color: var(--oxy-on-surface);
}

.oxy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oxy-input {
  display: block;
  margin-top: 0.25rem;
  min-width: 10rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--oxy-outline) 55%, transparent);
  border-radius: var(--oxy-radius);
  background: var(--oxy-surface);
  color: var(--oxy-on-surface);
  font: inherit;
}

.oxy-btn-primary {
  background: var(--oxy-primary-container);
  color: #fff;
}

/* Semântica: verde = aprovar/guardar; vermelho = suspender/remover; amarelo = reactivar/aviso */
.oxy-btn-success {
  background: #2e7d32;
  color: #fff;
}

.oxy-btn-success:hover:not(:disabled) {
  background: #1b5e20;
}

.oxy-btn-danger {
  background: #c62828;
  color: #fff;
}

.oxy-btn-danger:hover:not(:disabled) {
  background: #8e0000;
}

.oxy-btn-warning {
  background: #f9a825;
  color: #1a1a1a;
}

.oxy-btn-warning:hover:not(:disabled) {
  background: #f57f17;
  color: #111;
}

.oxy-user-menu,
.oxy-bell-wrap {
  position: relative;
}

.oxy-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--oxy-brand-teal), var(--oxy-brand-blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.oxy-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  box-shadow: var(--oxy-shadow);
  padding: 0.5rem 0;
  z-index: 40;
}

.oxy-dropdown a,
.oxy-dropdown button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  color: var(--oxy-on-surface);
  cursor: pointer;
  font: inherit;
}

.oxy-dropdown a:hover,
.oxy-dropdown button.linkish:hover {
  background: var(--oxy-surface-low);
}

.oxy-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--oxy-brand-lime);
  color: #181c20;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oxy-bell-panel {
  width: 320px;
  max-height: 420px;
  overflow: auto;
}

.oxy-bell-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.oxy-bell-item.unread {
  background: color-mix(in srgb, var(--oxy-primary-container) 8%, transparent);
}

.oxy-bell-item:hover {
  background: var(--oxy-surface-low);
}

.oxy-bell-item .title {
  font-weight: 600;
  font-size: 0.9rem;
}

.oxy-bell-item .body {
  font-size: 0.8rem;
  color: var(--oxy-muted);
  margin-top: 0.15rem;
}

.oxy-bell-item .time {
  font-size: 0.72rem;
  color: var(--oxy-muted);
  margin-top: 0.25rem;
}

.oxy-bell-footer {
  padding: 0.5rem 1rem;
  border-top: none;
  background: var(--oxy-surface-low);
}
