/* SYSTEM STYLING - VANILLA CSS PREMIUM DESIGN SYSTEM */

:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette (Slate / Indigo / Violet) */
  --bg-dark: #070a13;
  --bg-darker: #030408;
  --card-bg: rgba(13, 18, 33, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary-color: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --primary-hover-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  --accent-color: #a855f7;
  
  --success-color: #10b981;
  --danger-color: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.15);
  --warning-color: #f59e0b;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* BACKGROUND GLOW ELEMENTS */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  right: -10%;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--accent-color) 0%, rgba(0,0,0,0) 70%);
  bottom: -10%;
  left: -10%;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* TYPOGRAPHY */
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* GLASS CARD */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: #fff;
  outline: none;
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover-gradient);
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
  transform: rotate(90deg);
}

/* BADGE */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* INPUTS */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.input-group input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
}

.input-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.85);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

/* 1. AUTH / LOGIN SECTION */
.auth-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--accent-color);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.logo-circle i {
  width: 32px;
  height: 32px;
}

.login-header p {
  margin-top: 6px;
}

/* 2. DASHBOARD SECTION */
.dashboard-section {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
}

/* NAVBAR */
.glass-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 10, 19, 0.6);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-brand h2 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 10px rgba(99,102,241,0.2);
}

.user-profile .username {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* MAIN CONTENT */
.dashboard-content {
  flex: 1;
  padding: 24px;
  height: calc(100vh - 75px);
  overflow: hidden;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  height: 100%;
}

/* SIDEBAR (People List) */
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
  overflow: hidden;
}

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

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  padding: 10px 16px 10px 42px;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.people-list-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.person-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.person-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.08);
}

.person-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.08);
}

.item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.item-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-color);
}

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

.item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.list-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}

.spin {
  animation: spin 1s linear infinite;
}

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

/* DETAIL PANEL */
.detail-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.detail-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.empty-icon i {
  width: 36px;
  height: 36px;
}

.detail-empty-state p {
  margin-top: 10px;
}

/* DETAIL CONTENT */
.detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
}

.detail-avatar-container {
  position: relative;
}

.detail-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(99, 102, 241, 0.5);
  box-shadow: var(--glow-shadow);
}

.detail-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 2px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-color);
}

.detail-name-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.detail-name-section .badge {
  margin-top: 6px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 16px;
  border-radius: var(--radius-md);
}

.info-item i {
  color: var(--primary-color);
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.info-item-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-value.empty-field {
  color: var(--text-muted);
  font-style: italic;
}

/* SOCIAL NETWORK CHIPS */
.social-section {
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-left: 2px solid var(--accent-color);
  padding-left: 8px;
}

.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn-facebook {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.2);
}

.social-btn-facebook:hover {
  background: #1877f2;
  color: white;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.social-btn-instagram {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.2);
}

.social-btn-instagram:hover {
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: white;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
}

.social-btn-tiktok {
  background: rgba(0, 242, 234, 0.05);
  color: #00f2fe;
  border-color: rgba(0, 242, 234, 0.2);
}

.social-btn-tiktok:hover {
  background: #010101;
  color: white;
  border-color: #fe2c55;
  box-shadow: 0 0 15px rgba(254, 44, 85, 0.4);
}

.fb-color { color: #1877f2; }
.ig-color { color: #e1306c; }

.tiktok-icon-svg {
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="%2300f2fe"><path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a73.2,73.2,0,1,0,39.58,65.31V0h90.28a113.88,113.88,0,0,0,23,68.88,112.14,112.14,0,0,0,76.54,39V209.91Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.social-btn:hover .tiktok-icon-svg {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="white"><path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a73.2,73.2,0,1,0,39.58,65.31V0h90.28a113.88,113.88,0,0,0,23,68.88,112.14,112.14,0,0,0,76.54,39V209.91Z"/></svg>');
}

.tiktok-icon-svg-dark {
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="%2394a3b8"><path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a73.2,73.2,0,1,0,39.58,65.31V0h90.28a113.88,113.88,0,0,0,23,68.88,112.14,112.14,0,0,0,76.54,39V209.91Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
}

/* ADDITIONAL PHOTOS GALLERY */
.gallery-section {
  margin-top: 10px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-img-container {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-img-container:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  transition: opacity var(--transition-fast);
}

.gallery-img-container:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-additional-photos {
  text-align: center;
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.no-additional-photos i {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

/* 3. MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 4, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title-icon {
  color: var(--primary-color);
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 32px;
  border-top: 1px solid var(--card-border);
  background: rgba(3, 4, 8, 0.2);
}

/* FORM GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-section-full {
  grid-column: span 2;
}

.form-section-title-wrapper {
  margin-top: 10px;
  margin-bottom: 5px;
}

.form-section-divider {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
}

.form-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(168, 85, 247, 0.3), rgba(0,0,0,0));
  margin-left: 12px;
}

.hidden-input {
  display: none;
}

/* PHOTO UPLOAD DRAG-DROP ZONE */
.photo-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.form-section-title {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
}

.profile-upload-zone {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.profile-upload-zone:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.04);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 10px;
}

.upload-placeholder i {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
}

.upload-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.upload-placeholder small {
  font-size: 0.65rem;
  margin-top: 2px;
}

.profile-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo-btn {
  position: absolute;
  bottom: 8px;
  z-index: 5;
}

/* ADDITIONAL IMAGES SELECTION */
.additional-upload-zone {
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.01);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.additional-upload-zone:hover {
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.03);
}

.additional-previews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.preview-thumb-container {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.preview-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-thumb {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.85);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-remove-thumb:hover {
  background: rgba(239, 68, 68, 1);
}

.btn-remove-thumb i {
  width: 12px;
  height: 12px;
}

/* TOAST NOTIFICATION STYLING */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: slide-in-toast var(--transition-fast) forwards;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.toast-success i {
  color: var(--success-color);
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.toast-error i {
  color: var(--danger-color);
}

.toast-info {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

.toast-info i {
  color: var(--primary-color);
}

@keyframes slide-in-toast {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ANIMATIONS */
.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.animate-slide-in-left {
  animation: slideInLeft var(--transition-normal) forwards;
}

.animate-slide-in-right {
  animation: slideInRight var(--transition-normal) forwards;
}

.animate-scale-up {
  animation: scaleUp var(--transition-normal) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 350px 1fr;
  }
  
  .dashboard-content {
    height: auto;
    overflow: visible;
  }
  
  .people-list-container {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-section-full {
    grid-column: span 1;
  }
  
  .glass-navbar {
    padding: 12px 16px;
  }
  
  .dashboard-content {
    padding: 12px;
  }
  
  .detail-panel {
    padding: 16px;
  }
}

/* SYSTEM USER TABLE STYLING */
.users-list-table-container {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.users-table th, 
.users-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.users-table th {
  background: rgba(13, 18, 33, 0.95);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.users-table tbody tr {
  transition: background var(--transition-fast);
}

.users-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.users-table td {
  color: var(--text-primary);
}

.user-profile.clickable {
  transition: all var(--transition-fast);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.user-profile.clickable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.badge-user {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}
