:root {
  --bg: #080808;
  --sidebar-bg: #0d0d0d;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8b5cf6;
  --text: #ffffff;
  --text-muted: #a1a1aa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Background Glows */
.bg-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
}
.purple { top: 10%; right: 10%; background: var(--accent); }
.blue { bottom: 10%; left: 10%; background: #3b82f6; }

/* Layout Structure */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  position: fixed;
  height: 100vh;
  right: 0;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 50px;
  text-align: center;
}
.logo .dot { color: var(--accent); }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.side-nav a {
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--text-muted);
  transition: 0.3s;
  font-weight: 500;
}

.side-nav a.active, .side-nav a:hover {
  background: rgba(139, 92, 246, 0.1);
  color: white;
}

.logout a {
  color: #ef4444;
  font-size: 0.9rem;
}

/* Main Content */
.main-content {
  margin-right: 280px; /* Space for sidebar */
  flex-grow: 1;
  padding: 40px;
  width: calc(100% - 280px);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.content-header h1 { font-size: 1.8rem; }
.content-header span { color: var(--accent); }

.status-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Grid & Cards */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

/* Form Elements */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 12px 15px;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  outline: none;
}

.input-group input:focus {
  border-color: var(--accent);
}

/* Avatar Upload */
.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-bottom: 15px;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

#file-input { display: none; }

/* Link Items */
.link-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.link-info {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px 15px;
}

.link-info .icon { margin-left: 10px; }

.link-input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  padding: 8px 0;
  outline: none;
}

.btn-delete {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: white;
}

.add-link-btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.03);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-right: 0; width: 100%; padding: 20px; }
}
/* ... (کدهای قبلی CSS) ... */

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments for footer if needed */
@media (max-width: 768px) {
  .footer {
    padding: 15px;
  }
}
