:root {
  --bg-color: #050505;
  --panel-bg: rgba(25, 25, 30, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: #00d2ff;
  --accent-secondary: #3a7bd5;
  --accent-hover: #00b8e6;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --font-family: 'Outfit', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(58, 123, 213, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  display: flex;
  height: 100vh;
}

.hidden { display: none !important; }

.container {
  width: 100%;
  height: 100%;
  display: flex;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* LOGIN */
#login-container {
  justify-content: center;
  align-items: center;
}
.login-card {
  padding: 3rem;
  border-radius: 16px;
  width: 420px;
  text-align: center;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.logo-icon {
  color: var(--accent);
  width: 32px;
  height: 32px;
}
.logo { font-size: 28px; font-weight: 700; }
.logo span { color: var(--accent); }
.subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* FORMS */
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-row { display: flex; gap: 1rem; }
.input-row .input-group { flex: 1; }

.input-group label { 
  display: block; 
  margin-bottom: 0.5rem; 
  color: var(--text-muted); 
  font-size: 14px; 
  font-weight: 500;
}
.required { color: var(--danger); }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}
.input-wrapper input {
  padding-left: 40px !important;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.3s ease;
}
.input-group input:focus { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: white; 
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}
.btn-secondary { 
  background: rgba(255, 255, 255, 0.1); 
  color: white; 
}
.btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.15); 
}
.outline-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.outline-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}
.w-full { width: 100%; }

/* DASHBOARD SIDEBAR */
.sidebar {
  width: 260px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.sidebar-logo { justify-content: flex-start; margin-bottom: 0.2rem; }
.role-badge {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  align-self: flex-start;
  margin-left: 2.5rem;
  margin-bottom: 2rem;
}

.nav-links { list-style: none; flex: 1; }
.nav-links li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-links li i { width: 18px; height: 18px; }
.nav-links li:hover { 
  background: rgba(255, 255, 255, 0.05); 
  color: white; 
}
.nav-links li.active { 
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.15) 0%, transparent 100%);
  border-left: 3px solid var(--accent);
  color: var(--accent); 
}

/* CONTENT AREA */
.content {
  flex: 1;
  padding: 3rem;
  overflow-y: auto;
}
.panel {
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header { margin-bottom: 2rem; }
.panel-header h2 { 
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  margin-bottom: 0.5rem; 
}
.panel-header p { color: var(--text-muted); }

.card {
  padding: 2rem;
  border-radius: 12px;
}
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

/* DROP ZONE */
.drop-zone {
  width: 100%;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}
.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.drop-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.drop-zone__prompt {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
}
.drop-zone__subprompt {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.drop-zone:hover, .drop-zone--over { 
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.05);
}
.drop-zone__input { display: none; }

/* BULK UPLOAD LIST */
.bulk-instructions {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.bulk-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.bulk-list::-webkit-scrollbar { width: 6px; }
.bulk-list::-webkit-scrollbar-track { background: transparent; }
.bulk-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

.bulk-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bulk-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.bulk-item-remove {
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
}
.bulk-item-remove:hover { text-decoration: underline; }

/* PROGRESS */
.progress-bar-container { margin: 1.5rem 0; }
.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 14px;
  font-weight: 500;
}
.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--success) 100%);
  width: 0%;
  transition: width 0.3s;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* TABLES */
.table-container { padding: 1.5rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
th { 
  color: var(--text-muted); 
  font-weight: 500; 
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tr:hover td { background: rgba(255,255,255,0.02); }

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.status-active { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-visible { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-processing { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-hidden, .status-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
