/* --- PREMIUM GLASSMORPHISM DESIGN SYSTEM (Aivora Vibe) --- */
* {
  box-sizing: border-box;
}

body {
  background-color: #07090e;
  background-image: radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 85%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  color: #f3f4f6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  color: #818cf8;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

/* Layout & Sidebar */
.app-container {
  display: flex;
  min-height: 100vh;
}
.app-container.auth-layout {
  display: block;
}

.sidebar {
  width: 260px;
  background: #0b0f19;
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 10;
}

.sidebar-logo h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  margin-top: 32px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #9ca3af;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.btn-logout-sidebar {
  background: transparent;
  color: #ef4444;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  width: 100%;
  border-radius: 10px;
  transition: background 0.2s;
}
.btn-logout-sidebar:hover {
  background: rgba(239, 68, 68, 0.1);
}

.main-content {
  flex-grow: 1;
  margin-left: 260px;
  min-height: 100vh;
}

.auth-layout .main-content {
  margin-left: 0;
}

/* Dashboard & Containers */
.dashboard-container {
  padding: 32px;
  max-width: 1300px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.dashboard-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

/* Glass Cards */
.form-card, .balance-card, .project-info, .project-card, .post-card, .stat-card, .feed-post-card {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.form-control {
  width: 100%;
  background: rgba(11, 15, 25, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  color: #f3f4f6 !important;
  font-size: 14px;
  transition: all 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #8b5cf6 100%) !important;
  color: #fff;
  box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.5);
}
.btn-primary:hover {
  opacity: 0.92;
}

.btn-auto {
  width: auto !important;
}

/* Auth Pages */
.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.auth-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.auth-card .auth-logo {
  margin-bottom: 24px;
}
.auth-card .auth-logo h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-card .auth-logo p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.auth-card h1 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 600;
}

/* Grids & Utility */
.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-gap-14 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.text-error {
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 16px;
}

.text-success {
  color: #10b981;
  font-size: 13px;
  margin-bottom: 16px;
}

.text-small {
  font-size: 13px;
  color: #9ca3af;
}

.text-green {
  color: #10b981;
}

.text-red {
  color: #ef4444;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}
