/* Layout */
.freno-layout {
  display: flex;
  min-height: 100vh;
}

.freno-sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-normal);
  overflow: hidden;
}

.freno-sidebar-collapsed {
  width: 48px;
}

.freno-sidebar-collapsed .freno-logo-text,
.freno-sidebar-collapsed .freno-nav-text,
.freno-sidebar-collapsed .freno-user-info {
  display: none;
}

.freno-sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border);
}

.freno-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.freno-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.freno-logo-text {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

.freno-sidebar-toggle {
  padding: 4px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.freno-sidebar-nav {
  flex: 1;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.freno-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.freno-nav-link:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.freno-nav-link.active {
  background: var(--color-accent-muted);
  color: var(--color-accent);
}

.freno-nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.freno-nav-text {
  white-space: nowrap;
}

.freno-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--color-border);
}

.freno-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.freno-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}

.freno-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.freno-user-info {
  min-width: 0;
}

.freno-user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.freno-user-email {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.freno-btn-icon {
  padding: 6px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.freno-btn-icon:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

/* Main content */
.freno-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.freno-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  gap: 16px;
}

.freno-mobile-menu {
  display: none;
  padding: 8px;
  font-size: 18px;
  color: var(--color-text-secondary);
}

.freno-page-title {
  font-size: 16px;
  font-weight: 500;
}

.freno-header-content {
  flex: 1;
}

.freno-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.freno-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* Auth pages */
.freno-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-bg-primary);
}

.freno-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.freno-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.freno-auth-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.freno-auth-subtitle {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.freno-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.freno-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.freno-auth-divider {
  text-align: center;
  position: relative;
  margin: 16px 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.freno-auth-divider::before,
.freno-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 16px);
  height: 1px;
  background: var(--color-border);
}

.freno-auth-divider::before {
  left: 0;
}

.freno-auth-divider::after {
  right: 0;
}

.freno-auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Buttons */
.freno-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.freno-btn-primary {
  background: var(--color-accent);
  color: white;
}

.freno-btn-primary:hover {
  background: var(--color-accent-hover);
}

.freno-btn-secondary {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.freno-btn-secondary:hover {
  border-color: var(--color-border-hover);
}

.freno-btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.freno-btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.freno-btn-danger {
  background: var(--color-error);
  color: white;
}

.freno-btn-danger:hover {
  background: #dc2626;
}

.freno-btn-warning {
  background: var(--color-warning);
  color: var(--color-bg-primary);
}

.freno-btn-full {
  width: 100%;
}

.freno-btn-small {
  padding: 4px 8px;
  font-size: 12px;
}

/* Form elements */
.freno-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.freno-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.freno-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.freno-input {
  width: 100%;
}

.freno-textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

.freno-select {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.freno-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Page header */
.freno-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.freno-page-header h1 {
  font-size: 24px;
  font-weight: 600;
}

/* Toolbar */
.freno-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.freno-search-box {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.freno-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.freno-tab {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.freno-tab:hover {
  color: var(--color-text-primary);
}

.freno-tab-active {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

/* Project grid */
.freno-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.freno-project-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.freno-project-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.freno-project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.freno-project-card-header h3 {
  font-size: 16px;
  font-weight: 500;
}

.freno-project-card-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.freno-project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Badges */
.freno-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
}

.freno-badge-active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
}

.freno-badge-draft {
  background: rgba(234, 179, 8, 0.15);
  color: var(--color-warning);
}

.freno-badge-archived {
  background: rgba(115, 115, 115, 0.15);
  color: var(--color-text-muted);
}

.freno-badge-owner {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-accent);
}

.freno-badge-editor {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.freno-badge-viewer {
  background: rgba(115, 115, 115, 0.15);
  color: var(--color-text-muted);
}

.freno-badge-admin {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
}

/* Dashboard */
.freno-dashboard {
  max-width: 1200px;
}

.freno-welcome {
  margin-bottom: 32px;
}

.freno-welcome h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.freno-welcome p {
  color: var(--color-text-secondary);
}

.freno-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.freno-stat-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.freno-stat-value {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
}

.freno-stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.freno-section {
  margin-bottom: 32px;
}

.freno-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.freno-section-header h2 {
  font-size: 18px;
  font-weight: 500;
}

/* Empty state */
.freno-empty-state {
  text-align: center;
  padding: 48px 24px;
  grid-column: 1 / -1;
}

.freno-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.freno-empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.freno-empty-state p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* Info card */
.freno-info-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.freno-info-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.freno-info-card p {
  color: var(--color-text-primary);
  line-height: 1.6;
}

.freno-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.freno-dl dt {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.freno-dl dd {
  font-size: 13px;
}

.freno-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Tabs */
.freno-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

/* Collaborators */
.freno-add-collaborator {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.freno-add-collaborator .freno-input {
  flex: 1;
  min-width: 150px;
}

.freno-collaborator-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.freno-collaborator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.freno-collaborator-info {
  flex: 1;
  min-width: 0;
}

.freno-collaborator-name {
  font-size: 14px;
  font-weight: 500;
}

.freno-collaborator-email {
  font-size: 12px;
  color: var(--color-text-muted);
}

.freno-user-id {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
}

/* Profile */
.freno-profile-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.freno-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.freno-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.freno-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.freno-profile-info h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.freno-email {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.freno-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.freno-edit-name {
  display: flex;
  gap: 8px;
  align-items: center;
}

.freno-edit-name .freno-input {
  max-width: 300px;
}

/* Preferences */
.freno-preferences {
  display: flex;
  flex-direction: column;
}

.freno-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.freno-preference-item h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.freno-preference-item p {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.freno-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.freno-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.freno-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.freno-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.freno-toggle input:checked + .freno-toggle-slider {
  background: var(--color-accent);
}

.freno-toggle input:checked + .freno-toggle-slider::before {
  transform: translateX(20px);
}

/* Modal */
.freno-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.freno-modal {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.freno-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.freno-modal-header h2 {
  font-size: 18px;
}

.freno-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Breadcrumb */
.freno-breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.freno-breadcrumb a {
  color: var(--color-text-secondary);
}

.freno-breadcrumb a:hover {
  color: var(--color-accent);
}

/* Teams */
.freno-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.freno-team-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.freno-team-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.freno-team-card-new {
  border-style: dashed;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.freno-team-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.freno-team-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.freno-team-members {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Alerts */
.freno-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
}

.freno-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

/* Loading */
.freno-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.freno-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Avatars */
.freno-collaborators {
  display: flex;
  align-items: center;
}

.freno-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  margin-left: -6px;
  border: 2px solid var(--color-bg-secondary);
}

.freno-avatar-small:first-child {
  margin-left: 0;
}

.freno-avatar-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  margin-left: -6px;
  border: 2px solid var(--color-bg-secondary);
  color: var(--color-text-muted);
}

/* Share link */
.freno-share-link {
  display: flex;
  gap: 8px;
}

.freno-share-link .freno-input {
  flex: 1;
}

/* Quick actions */
.freno-quick-actions {
  margin-top: 16px;
}

.freno-quick-actions h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.freno-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.freno-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.freno-action-card:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-muted);
}

.freno-action-icon {
  font-size: 24px;
}

.freno-action-card span:last-child {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Date helper */
.freno-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.freno-collab-count {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Responsive */
/* KPI Dashboard */
.freno-kpi-dashboard {
  max-width: 1200px;
}

.freno-text-muted {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.freno-text-success {
  color: var(--color-success);
}

.freno-text-error {
  color: var(--color-error);
}

.freno-kpi-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.freno-kpi-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.freno-kpi-tab:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-elevated);
}

.freno-kpi-tab-active {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.freno-kpi-tab-icon {
  font-size: 16px;
}

.freno-kpi-panel {
  min-height: 400px;
}

.freno-kpi-panel-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.freno-kpi-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.freno-kpi-panel-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.freno-kpi-external-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.freno-kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.freno-kpi-metric-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

.freno-kpi-metric-card:hover {
  border-color: var(--color-border-hover);
}

.freno-kpi-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.freno-kpi-metric-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.freno-kpi-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background: rgba(115, 115, 115, 0.15);
  color: var(--color-text-muted);
}

.freno-kpi-metric-value {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.freno-kpi-metric-target {
  font-size: 12px;
  color: var(--color-text-muted);
}

.freno-kpi-metric-pending .freno-kpi-metric-value {
  color: var(--color-text-muted);
}

.freno-kpi-healthy {
  border-color: rgba(34, 197, 94, 0.3);
}

.freno-kpi-warning {
  border-color: rgba(234, 179, 8, 0.3);
}

.freno-kpi-critical {
  border-color: rgba(239, 68, 68, 0.3);
}

.freno-kpi-info-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.freno-kpi-info-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.freno-kpi-info-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.freno-kpi-info-card ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.freno-kpi-info-card li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.freno-kpi-report-template {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.freno-kpi-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.freno-kpi-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.freno-kpi-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.freno-kpi-table tr:last-child td {
  border-bottom: none;
}

.freno-kpi-table-key {
  font-weight: 500;
  text-transform: capitalize;
}

.freno-kpi-table tbody tr:hover {
  background: var(--color-bg-elevated);
}

@media (max-width: 768px) {
  .freno-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: var(--sidebar-width) !important;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .freno-sidebar.freno-sidebar-open {
    transform: translateX(0);
  }

  .freno-mobile-menu {
    display: block;
  }

  .freno-content {
    padding: 16px;
  }

  .freno-project-grid {
    grid-template-columns: 1fr;
  }

  .freno-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .freno-profile-header {
    flex-direction: column;
    text-align: center;
  }

  .freno-add-collaborator {
    flex-direction: column;
  }

  .freno-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
