/* NYB Design System Tokens */
:root {
  --bg: #f2f0eb;
  --ink: #191917;
  --neon: #dcff01;
  --dark: #1a1a18;
  --mid: #7a7a72;
  --ff-hd: 'Unbounded', sans-serif;
  --ff-b: 'Unbounded', sans-serif;
  --radius: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--ff-b);
}

body {
  background-color: var(--dark);
  color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==================== LOGIN PAGE ==================== */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-container {
  background: var(--ink);
  width: 100%;
  max-width: 420px;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo-icon {
  font-size: 2.5rem;
  color: var(--neon);
  margin-bottom: 1.5rem;
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.login-header p {
  color: var(--mid);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-top: 0.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid);
  font-size: 1rem;
}

.input-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--bg);
  transition: all 0.3s;
  outline: none;
}

.input-group input:focus {
  border-color: var(--neon);
  background: rgba(255, 255, 255, 0.05);
}

.input-group input:focus + i,
.input-group input:focus ~ i {
  color: var(--neon);
}

.toggle-password {
    left: auto !important;
    right: 1rem;
    cursor: pointer;
}

.btn-login {
  background: var(--neon);
  color: var(--ink);
  border: none;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-login:hover {
  background: #f0f87e;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(237, 246, 98, 0.2);
}

.flash {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flash.error {
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--mid);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* ==================== DASHBOARD PAGE ==================== */
.dashboard-body {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.sidebar-header {
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h2 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg);
}

.nav-links {
  list-style: none;
  padding: 2rem 1.5rem;
  flex-grow: 1;
}

.nav-links li {
  margin-bottom: 0.5rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--mid);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--bg);
  background: rgba(255, 255, 255, 0.03);
}

.nav-links li.active a {
  background: rgba(237, 246, 98, 0.05);
  color: var(--neon);
  border-left: 3px solid var(--neon);
}

/* ==================== DRAWER MENU ==================== */
.drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    z-index: 2000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}
.drawer.open { left: 0; }
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7); z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }
.drawer-header { padding: 2.5rem 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.drawer-header h2 { font-size: 1.2rem; font-weight: 900; color: var(--bg); text-transform: uppercase; }
.btn-icon { background: none; border: none; color: var(--bg); font-size: 1.2rem; cursor: pointer; transition: color 0.2s; }
.btn-icon:hover { color: var(--neon); }

.sidebar-project-item {
    padding: 0.85rem 1.5rem;
    color: var(--mid);
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}
.project-name-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-grow: 1;
    overflow: hidden;
}
.project-name-content span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-options-dropdown {
    position: relative;
}
.project-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.project-dropdown-menu.show {
    display: block;
}
.project-dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--bg);
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.project-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon);
}
.sidebar-project-item:hover { color: var(--bg); background: rgba(255,255,255,0.03); }
.sidebar-project-item.active { border-left-color: var(--neon); color: var(--neon); background: rgba(237, 246, 98, 0.05); }

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--neon);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.details .name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.details .role {
  font-size: 0.7rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-logout {
  color: var(--mid);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s;
}

.btn-logout:hover {
  color: var(--neon);
}

.main-content {
  flex-grow: 1;
  margin-left: 280px;
  padding: 4rem 5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  overflow: visible;
}

.topbar h1 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg);
  letter-spacing: -0.02em;
}

.actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-notification {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--mid);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.btn-notification:hover {
  color: var(--neon);
  border-color: var(--neon);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--neon);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  background: var(--neon);
  color: var(--ink);
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #f0f87e;
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(237, 246, 98, 0.2);
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
}

.card-icon {
  display: none; /* Removed the colourful icons to fit the brand */
}

.card-data h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.card-data .value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.trend {
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trend.up { color: var(--neon); }
.trend.down { color: #ff4444; }

.recent-activity {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-activity h2 {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recent-activity h2::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--neon);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.activity-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius);
  margin-top: 6px;
}

.activity-item.success .status-indicator { background: var(--neon); }
.activity-item.error .status-indicator { background: #ff4444; }

.activity-content {
  flex-grow: 1;
}

.activity-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.activity-content p {
  font-size: 0.85rem;
  color: var(--mid);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--mid);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==================== KANBAN BOARD ==================== */
.kanban-board {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: calc(100vh - 200px);
}

.kanban-column {
  flex: 0 0 320px;
  background: rgba(25, 25, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.kanban-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-header h3 {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
}

.kanban-count {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.7rem;
  color: var(--mid);
  font-weight: 700;
}

.kanban-cards {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

.kanban-card {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.kanban-card:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lead-temp {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
}

.lead-temp.frio { background: rgba(100, 150, 255, 0.1); color: #6496ff; border: 1px solid rgba(100, 150, 255, 0.2); }
.lead-temp.morno { background: rgba(255, 180, 50, 0.1); color: #ffb432; border: 1px solid rgba(255, 180, 50, 0.2); }
.lead-temp.quente { background: rgba(255, 68, 68, 0.1); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.2); }

.lead-date {
  font-size: 0.65rem;
  color: var(--mid);
  font-weight: 700;
}

.kanban-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 1rem;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.lead-owner {
  font-size: 0.7rem;
  color: var(--bg);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lead-owner i { color: var(--neon); }

.lead-owner.text-muted { color: var(--mid); }
.lead-owner.text-muted i { color: var(--mid); }

.lead-value {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--neon);
}

.kanban-empty {
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.kanban-ghost {
  opacity: 0.5;
  background: rgba(237, 246, 98, 0.1) !important;
  border: 1px dashed var(--neon) !important;
}

.drag-handle {
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  width: 90%;
  max-width: 600px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.close {
  color: var(--mid);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--neon);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group select {
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--bg);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--neon);
}

.modal-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-large {
  max-width: 900px !important;
}

.modal-layout {
  display: flex;
  gap: 2.5rem;
}

.modal-main {
  flex: 1;
}

.modal-sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 2rem;
}

.modal-sidebar h3 {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.timeline {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  max-height: 400px;
  padding-right: 0.5rem;
}

.timeline-empty {
  font-size: 0.75rem;
  color: var(--mid);
  text-align: center;
  padding: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.timeline-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--mid);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-meta {
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.timeline-meta strong {
  color: var(--bg);
  font-weight: 700;
}

.timeline-date {
  color: var(--mid);
  margin-left: 0.5rem;
}

.timeline-text {
  font-size: 0.8rem;
  color: var(--bg);
  line-height: 1.4;
}

.timeline-input {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.timeline-input input {
  flex: 1;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--bg);
  font-size: 0.8rem;
  outline: none;
}

.timeline-input input:focus {
  border-color: var(--neon);
}

.timeline-input button {
  background: var(--neon);
  color: var(--ink);
  border: none;
  width: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.timeline-input button:hover {
  opacity: 0.9;
}

.btn-add-task {
  background: transparent;
  color: var(--mid);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-add-task:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(237, 246, 98, 0.05);
}

.invite-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invite-user-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--bg);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.invite-user-item:hover {
    background: rgba(237, 246, 98, 0.05);
    border-color: var(--neon);
    color: var(--neon);
}

.invite-user-item.selected {
    background: rgba(237, 246, 98, 0.1);
    border-color: var(--neon);
    color: var(--neon);
}

.user-info-invite {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.permission-toggles {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
    background: rgba(0,0,0,0.2);
    padding: 0.2rem;
    border-radius: var(--radius);
}

.perm-btn {
    background: transparent;
    border: none;
    color: var(--mid);
    padding: 0.4rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.perm-btn:hover {
    color: var(--bg);
    background: rgba(255, 255, 255, 0.1);
}

.perm-btn.active {
    background: var(--neon);
    color: var(--ink);
}

/* ==================== MEMBER AVATARS ==================== */
.member-avatars {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 0.75rem;
    position: relative;
}

.member-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--neon);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon);
    margin-left: -8px;
    transition: transform 0.2s;
    z-index: 1;
}

.member-avatar:first-child { margin-left: 0; }

.member-avatar:hover {
    transform: translateY(-4px) scale(1.15);
    z-index: 50;
}

.member-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    border: 1px solid rgba(220, 255, 1, 0.35);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--bg);
    gap: 0.4rem;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    pointer-events: none;
}

.member-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink);
}

.member-avatar:hover .member-tooltip {
    display: flex;
}

.member-role-badge {
    background: rgba(220, 255, 1, 0.15);
    color: var(--neon);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* ==================== PROFILE MODAL ==================== */
.profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--ink);
    border: 3px solid var(--neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-circle:hover::after {
    content: '\f093';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--neon);
}

.profile-avatar-circle:hover {
    border-color: var(--bg);
}

.sidebar-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.sidebar-avatar-btn .avatar {
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-avatar-btn:hover .avatar {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--neon);
    border-radius: 50%;
}

/* ==================== VIEW TOGGLE & LIST VIEW ==================== */
.view-toggle-bar {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 30px;
    gap: 4px;
}

.view-toggle-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--mid);
    padding: 0.5rem 1.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle-btn:hover {
    color: var(--bg);
}

.view-toggle-btn.active {
    background: rgba(220, 255, 1, 0.08);
    border-color: rgba(220, 255, 1, 0.15);
    color: var(--neon);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ny-table-wrapper {
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ny-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.78rem;
}

.ny-table th {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.1rem 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--mid);
}

.ny-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--bg);
}

.ny-table-row {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.ny-table-row:hover {
    background: rgba(220, 255, 1, 0.02);
    border-left-color: var(--neon);
}

/* Custom Dropdown Responsavel */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    color: var(--bg);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    height: 42px;
}
.custom-select-trigger:hover {
    border-color: var(--neon);
    background: rgba(255, 255, 255, 0.05);
}
.selected-user-display {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.select-chevron {
    font-size: 0.75rem;
    color: var(--mid);
    transition: transform 0.2s;
}
.custom-options-container {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.custom-options-container.show {
    display: flex;
}
.custom-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.custom-option:hover {
    background: rgba(237, 246, 98, 0.08);
}
.custom-option.selected {
    background: rgba(237, 246, 98, 0.15);
    border-left: 2px solid var(--neon);
}
.option-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-weight: bold;
    color: var(--neon);
    font-size: 0.65rem;
}
.option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.option-name {
    font-size: 0.85rem;
    color: var(--bg);
}

/* Custom styles for Temperatura Options */
.temp-badge {
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    text-align: center;
    width: 100%;
}
.badge-frio {
    background: rgba(43, 142, 242, 0.12) !important;
    color: rgb(110, 185, 255) !important;
    border: 1px solid rgba(43, 142, 242, 0.25);
}
.badge-morno {
    background: rgba(237, 185, 45, 0.12) !important;
    color: rgb(245, 203, 91) !important;
    border: 1px solid rgba(237, 185, 45, 0.25);
}
.badge-quente {
    background: rgba(242, 82, 82, 0.12) !important;
    color: rgb(250, 120, 120) !important;
    border: 1px solid rgba(242, 82, 82, 0.25);
}

.custom-option.temp-option-frio:hover {
    background: rgba(43, 142, 242, 0.08) !important;
}
.custom-option.temp-option-morno:hover {
    background: rgba(237, 185, 45, 0.08) !important;
}
.custom-option.temp-option-quente:hover {
    background: rgba(242, 82, 82, 0.08) !important;
}

