/* LIFE OS ELITE v5.0 | SYSTEM STYLES */
:root {
  --bg: #040404;
  --side: #0a0a0a;
  --cyan: #00f2ff;
  --violet: #8e00ff;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.03);
  --text: #fff;
  --muted: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  height: 100vh;
  overflow: hidden;
}

.elite-frame {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.os-sidebar {
  width: 90px;
  background: var(--side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}
.os-logo {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-family: "Outfit";
  margin-bottom: 40px;
}
.os-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.os-nav-item {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: 0.3s;
}
.os-nav-item:hover,
.os-nav-item.active {
  background: var(--glass);
  color: var(--cyan);
}

/* MAIN */
.os-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.os-header {
  height: 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}
.os-id {
  line-height: 1.2;
}
.os-v {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 2px;
}
.os-s {
  font-size: 14px;
  color: #444;
}
.os-clock {
  font-family: "Outfit";
  font-size: 24px;
  font-weight: 700;
}
.os-sync-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}
.os-sync-badge.linked {
  color: var(--cyan);
  border-color: rgba(0, 242, 255, 0.3);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
}
.linked .status-dot {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.os-btn-special {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}
.os-btn-special:hover {
  background: var(--cyan);
  color: #000;
}

/* VIEWPORT */
.os-viewport {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  position: relative;
}
.os-view {
  display: none;
}
.os-view.active {
  display: block;
  animation: viewFade 0.4s ease-out;
}
@keyframes viewFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* COMMON COMPONENTS */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.i-grp label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.i-grp input {
  width: 100%;
  background: #111;
  border: 1px solid #222;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: 0.3s;
}
.i-grp input:focus {
  border-color: var(--cyan);
}
.os-btn-calc {
  width: 100%;
  background: var(--cyan);
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}
.os-btn-calc:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

/* KANBAN v5 */
.kanban-v5 {
  display: flex;
  gap: 20px;
  height: 500px;
}
.k-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.k-head {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.k-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.task-card {
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.task-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 242, 255, 0.05);
}
.k-add-tool {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  padding: 15px;
}
#task-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
}
#add-task-btn {
  background: var(--cyan);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

/* BRAIN v5 */
.brain-v5 {
  display: flex;
  gap: 24px;
  height: 600px;
}
.b-sidebar {
  width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#new-note-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
#note-list {
  flex: 1;
  overflow-y: auto;
}
.note-item {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: #999;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-item.active {
  color: var(--cyan);
  font-weight: 700;
  background: var(--glass);
}
.b-editor {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}
#note-title {
  background: transparent;
  border: none;
  font-size: 32px;
  font-family: "Outfit";
  font-weight: 800;
  color: #fff;
  outline: none;
  margin-bottom: 20px;
}
#note-body {
  flex: 1;
  background: transparent;
  border: none;
  color: #ccc;
  line-height: 1.6;
  resize: none;
  outline: none;
}

/* WEALTH ENGINE */
.wealth-engine {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
}
.w-calc {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.w-result {
  padding: 30px;
}

/* SETTINGS */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.s-card {
  padding: 30px;
}
.db-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-weight: 700;
  color: var(--cyan);
  font-size: 12px;
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-indicator.online {
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}

/* BIO TRACKER & SYNC */
.bio-tracker {
  margin-top: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tracker-header h4 {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--cyan);
  font-weight: 900;
}
.tracker-header small {
  font-size: 9px;
  color: var(--muted);
}
.tracker-body {
  display: flex;
  align-items: center;
  gap: 30px;
}
#bio-range {
  flex: 1;
  accent-color: var(--cyan);
  cursor: pointer;
}
.tracker-val {
  font-family: "Outfit";
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.os-btn-sync {
  background: linear-gradient(135deg, #111, #000);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 15px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 11px;
  cursor: pointer;
  transition: 0.3s;
}
.os-btn-sync:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}
