@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --p: #818cf8;
  --s: #c084fc;
  --accent: #22d3ee;
  --bg: #050505;
  --card: rgba(15, 15, 15, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #888888;
  --glass: blur(30px) saturate(200%);
  --grain: url('https://grainy-gradients.vercel.app/noise.svg');
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: default; }
a, button { cursor: pointer; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- GRAIN OVERLAY --- */
body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--grain); opacity: 0.04; z-index: 9999; pointer-events: none;
}

/* --- CINEMATIC HERO --- */
.hero-visual {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 140%; height: 140%; z-index: -1; opacity: 0.4;
  background: radial-gradient(circle at center, var(--p) 0%, transparent 70%);
  filter: blur(100px); animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

/* --- LANDING UI --- */
.nav-landing {
  position: fixed; top: 0; width: 100%; height: 100px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 1000; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-landing.scrolled { height: 70px; background: rgba(0,0,0,0.8); backdrop-filter: var(--glass); border-bottom: 1px solid var(--border); }

.hero-section {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-top: 100px; position: relative;
}

/* --- DASHBOARD REDESIGN --- */
.dash-layout { display: flex; min-height: 100vh; background: #000; }
.sidebar-dash {
  width: 320px; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px); 
  border-right: 1px solid var(--border); padding: 50px 25px;
  display: flex; flex-direction: column; position: fixed; height: 100vh; z-index: 100;
}
.main-dash { flex: 1; margin-left: 320px; padding: 80px 100px; position: relative; min-height: 100vh; }

.nav-item {
  display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: 16px;
  color: #666; text-decoration: none; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600; font-size: 1.05rem; border: 1px solid transparent;
}
.nav-item i { font-size: 1.2rem; transition: 0.3s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.03); }
.nav-item.active { 
  color: #fff; background: rgba(255,255,255,0.05); border-color: var(--p);
  box-shadow: 0 0 20px rgba(129,140,248,0.3);
}
.nav-item.active i { color: var(--p); transform: scale(1.1); }

.card-stat {
  background: linear-gradient(135deg, rgba(20,20,20,0.8), rgba(10,10,10,0.9));
  border: 1px solid var(--border); border-radius: 32px; padding: 40px;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-stat:hover { transform: translateY(-10px) scale(1.02); border-color: var(--p); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6); }

.title-giant {
  font-size: clamp(50px, 12vw, 150px); font-weight: 900; letter-spacing: -8px; line-height: 0.85;
  background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 40px; animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-luxury {
  padding: 24px 50px; border-radius: 16px; font-weight: 800; font-size: 1.1rem; text-decoration: none;
  background: #fff; color: #000; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px -10px rgba(255,255,255,0.3);
}
.btn-luxury:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 40px 80px -15px rgba(255,255,255,0.4); }

/* --- GRID CARDS 3D --- */
.card-glass {
  background: var(--card); backdrop-filter: var(--glass); border: 1px solid var(--border);
  border-radius: 40px; padding: 60px; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden; transform-style: preserve-3d; perspective: 1000px;
}
.card-glass:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-15px) rotateX(2deg) rotateY(1deg); box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5); }

/* --- FILE EXPLORER --- */
.files-main { padding-top: 20px; }
.section-label { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; margin-top: 40px; }

.folders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; margin-bottom: 60px; }
.folder-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 25px;
  display: flex; align-items: center; gap: 18px; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; color: #fff; position: relative;
}
.folder-card:hover { transform: translateY(-8px); border-color: var(--p); background: rgba(255,255,255,0.03); box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4); }
.folder-card i { font-size: 1.8rem; color: var(--p); }
.folder-card span { font-weight: 700; font-size: 1rem; letter-spacing: -0.3px; }

.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.file-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 30px;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; gap: 20px;
}
.file-card:hover { transform: translateY(-12px); border-color: var(--s); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5); }
.file-icon-box {
  width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

.drop-zone {
  border: 2px dashed var(--border); border-radius: 30px; padding: 60px; text-align: center;
  background: rgba(255,255,255,0.01); transition: 0.3s; margin-bottom: 40px; cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--p); background: rgba(129,140,248,0.05); }
.drop-zone i { font-size: 3rem; color: var(--p); margin-bottom: 20px; opacity: 0.5; }
.drop-zone p { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.drop-zone p span { color: #fff; font-weight: 800; }

/* --- MODALS --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px); z-index: 10000; display: none; align-items: center; justify-content: center;
}
.modal-content {
  background: #0a0a0a; border: 1px solid var(--border); border-radius: 40px; padding: 50px;
  width: 90%; max-width: 550px; animation: reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BREADCRUMB --- */
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.3; }

/* --- BUTTONS GHOST --- */
.btn-ghost {
  padding: 14px 24px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: #fff; font-weight: 700; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }


/* --- UPLOAD PROGRESS --- */
.upload-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 10px; animation: slideDown 0.4s ease; }
.upload-item-name { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.upload-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.upload-bar-fill { height: 100%; background: var(--p); transition: 0.3s; width: 0; }
.upload-status { font-weight: 800; color: var(--p); }

/* --- PROFILE STYLES --- */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.profile-avatar-big { width: 120px; height: 120px; background: linear-gradient(135deg, var(--p), var(--s)); border-radius: 40px; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; margin-bottom: 30px; box-shadow: 0 20px 40px -10px rgba(129,140,248,0.5); }
.profile-stats-mini { display: flex; gap: 20px; margin-top: 30px; }
.stat-mini { background: rgba(255,255,255,0.03); padding: 15px 25px; border-radius: 16px; border: 1px solid var(--border); flex: 1; text-align: center; }
.stat-mini strong { display: block; font-size: 1.2rem; font-weight: 800; }
.stat-mini small { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 40px; padding: 50px; margin-bottom: 40px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }

/* --- ULTRA COMPONENTS --- */
.input-ultra { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 20px 28px; border-radius: 18px; color: #fff; font-family: inherit; font-size: 1.1rem; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); outline: none; backdrop-filter: blur(10px); }
.input-ultra:focus { border-color: var(--p); background: rgba(255,255,255,0.08); box-shadow: 0 0 0 6px rgba(129,140,248,0.15); }
.btn-luxury { padding: 20px 40px; border-radius: 16px; font-weight: 800; font-size: 1.1rem; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%); color: #000; box-shadow: 0 20px 40px -10px rgba(255,255,255,0.3); }
.btn-luxury:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 40px 80px -15px rgba(255,255,255,0.4); }
.btn-icon-sm { width: 35px; height: 35px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: #fff; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-icon-sm:hover { background: rgba(255,255,255,0.08); border-color: var(--p); }

/* --- ADMIN STYLES --- */
.admin-card { background: rgba(15,15,15,0.7); border: 1px solid var(--border); border-radius: 32px; padding: 40px; }
.admin-stat-icon { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin-bottom: 25px; }
.log-item { display: flex; align-items: center; gap: 15px; padding: 15px 20px; background: rgba(255,255,255,0.02); border-radius: 14px; margin-bottom: 10px; font-size: 0.9rem; }
.log-action { padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.log-upload { background: rgba(16,185,129,0.1); color: #10b981; }
.log-delete { background: rgba(239,68,68,0.1); color: #ef4444; }
.log-login { background: rgba(129,140,248,0.1); color: var(--p); }
