:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --accent: #06b6d4;
  --danger: #ef4444;
  --success: #10b981;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
}

/* ========== AUTH SCREEN ========== */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #312e81 50%, var(--primary-light) 100%);
}

.auth-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-box h2 {
  text-align: center;
  color: var(--primary);
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.auth-box .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--primary-bg);
  padding: 4px;
  border-radius: 10px;
}

.auth-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: none;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s;
}

.toggle-password:hover {
  color: var(--primary);
}

/* ========== HEADER ========== */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: calc(env(safe-area-inset-top, 20px) + 24px) 0 16px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.app-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.app-header .user-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.app-header .user-bar button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.app-header .user-bar button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ========== CARDS ========== */
.card-custom {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.card-custom:hover {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  font-size: 1.2rem;
}

/* ========== FORM ========== */
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

/* ========== INTERVALOS ========== */
.intervalo {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-bg);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: background 0.15s;
}

.intervalo:hover {
  background: #e0e7ff;
}

.intervalo .form-label {
  margin-bottom: 2px;
  font-size: 0.75rem;
}

.intervalo .form-control {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.intervalo .parcial-badge {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}

/* ========== TOTAL ========== */
.total-display {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  color: #fff;
}

.total-display .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.total-display .value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: #4338ca;
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

.btn-danger-custom {
  background: transparent;
  color: var(--danger);
  border: 2px solid var(--danger);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-danger-custom:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sm-icon.remove {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.btn-sm-icon.remove:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm-icon.add {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.btn-sm-icon.add:hover {
  background: var(--success);
  color: #fff;
}

/* ========== PANELS ========== */
.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* ========== HOME GRID ========== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.home-card .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.home-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.home-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, var(--accent) 0%, #0369a1 100%);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  opacity: 0.9;
  font-weight: 600;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}

/* ========== HISTORY ========== */
.history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.history-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.history-card .project-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.history-card .desc-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 6px 0;
}

.history-card .intervals-list {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.history-card .intervals-list span {
  margin-right: 12px;
}

.history-card .total-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.history-card .actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.history-card .actions button {
  font-size: 0.8rem;
  padding: 5px 12px;
}

.date-group-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  padding: 6px 0 8px;
  margin-top: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-group-header i {
  color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  opacity: 0.4;
}

/* ========== APONTADO ========== */
.apontado-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.apontado-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

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

.apontado-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 22px;
  transition: background 0.25s;
}

.apontado-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.apontado-toggle input:checked+.apontado-slider {
  background: var(--success);
}

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

.apontado-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.apontado-label.checked {
  color: var(--success);
}

.history-card.apontado {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

/* ========== FILTERS ========== */
.filters-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters-row .form-control,
.filters-row .form-select {
  flex: 1;
  min-width: 120px;
  font-size: 0.85rem;
  padding: 8px 12px;
}

/* ========== CADASTROS ========== */
.cadastro-section {
  margin-bottom: 24px;
}

.cadastro-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.cadastro-add-row .form-control,
.cadastro-add-row .form-select {
  flex: 1;
  font-size: 0.88rem;
  padding: 8px 12px;
}

.cadastro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--primary-bg);
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.cadastro-item .item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.cadastro-item .item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cadastro-item .item-actions {
  display: flex;
  gap: 4px;
}

.cadastro-item .item-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.cadastro-item .item-actions .btn-edit {
  color: var(--primary);
}

.cadastro-item .item-actions .btn-edit:hover {
  background: rgba(79, 70, 229, 0.1);
}

.cadastro-item .item-actions .btn-del {
  color: var(--danger);
}

.cadastro-item .item-actions .btn-del:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ========== EXPORT ========== */
.btn-export {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-calendar {
  background: linear-gradient(135deg, #4285f4, #1a73e8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-calendar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
  color: #fff;
}

/* ========== TOAST ========== */
.toast-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.toast-custom.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== LOADING ========== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-bg);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========== PLANEJAMENTO TIMELINE & MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 20px;
}

.modal-content-custom {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.btn-close-custom {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.btn-close-custom:hover {
  color: var(--danger);
}

.timeline-container {
  position: relative;
  min-height: 400px;
  background: #fff;
  padding: 16px 16px 16px 56px;
  overflow-y: auto;
  max-height: 60vh;
}

.time-slot {
  height: 60px;
  border-top: 1px solid var(--border);
  position: relative;
  box-sizing: border-box;
}

.time-slot span {
  position: absolute;
  left: -48px;
  top: -10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  background: #fff;
  padding: 0 4px;
}

.time-slot-half {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  border-top: 1px dashed #e2e8f0;
}

.plan-event {
  position: absolute;
  left: 60px;
  right: 16px;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: grab;
  touch-action: none;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-left: 4px solid rgba(0, 0, 0, 0.3);
  height: var(--event-height, 60px);
}

.plan-event:active {
  cursor: grabbing;
}

.plan-event:hover {
  transform: translateY(-2px);
  z-index: 50;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

.plan-event-title {
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
  line-height: 1.2;
  flex-shrink: 0;
}

.plan-event-time {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 600;
  flex-shrink: 0;
}

.plan-event-actions {
  display: flex;
  gap: 6px;
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
  z-index: 60;
}

.plan-event:hover .plan-event-actions,
.plan-event:active .plan-event-actions {
  opacity: 1;
}

.plan-event-actions button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.plan-event-actions button:hover {
  background: rgba(255, 255, 255, 0.4);
}

.btn-sm-icon.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-sm-icon.outline:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* Color Options */
.color-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: #333;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #fff inset;
}

/* Current Time Line */
.current-time-line {
  position: absolute;
  left: 56px;
  right: 0;
  height: 2px;
  background-color: var(--danger);
  z-index: 5;
  pointer-events: none;
}

.current-time-line::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--danger);
}


.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 576px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intervalo {
    flex-wrap: wrap;
    gap: 8px;
  }

  .intervalo>div {
    flex: 1;
    min-width: 80px;
  }

  .total-display .value {
    font-size: 1.8rem;
  }

  .filters-row {
    flex-direction: column;
  }

  .cadastro-add-row {
    flex-direction: column;
    gap: 12px;
  }

  .cadastro-add-row .form-control,
  .cadastro-add-row .form-select,
  .cadastro-add-row button {
    width: 100%;
  }
}

/* ========== DRAWER MENU ========== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--surface);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}

.menu-drawer-title {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-drawer-header .btn-close-custom {
  color: rgba(255,255,255,0.8);
  font-size: 1.6rem;
}

.menu-drawer-header .btn-close-custom:hover {
  color: #fff;
}

.menu-drawer-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.menu-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.menu-drawer-nav a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.menu-drawer-nav a i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.15s;
}

.menu-drawer-nav a:hover i {
  color: var(--primary);
}

.menu-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}

.menu-drawer-nav .menu-logout {
  color: var(--danger);
}

.menu-drawer-nav .menu-logout i {
  color: var(--danger);
}

/* ========== HEADER AVATAR ========== */
.header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
  vertical-align: middle;
  margin-right: 4px;
}

/* ========== CONTA / PROFILE ========== */
.conta-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.conta-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

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

.conta-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

.conta-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.conta-avatar-wrapper:hover .conta-avatar-overlay {
  opacity: 1;
}

/* ========== FORGOT PASSWORD ========== */
.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ========== PLAN EVENT REGISTERED BADGE ========== */
.plan-registered-badge {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.3);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 3px;
}