:root {
  --bg-color: #020205;
  --card-bg: rgba(10, 20, 30, 0.6);
  --card-border: rgba(0, 243, 255, 0.4);
  --text-primary: #e0faff;
  --text-secondary: #00f3ff;
  --neon-cyan: #00f3ff;
  --neon-purple: #bd00ff;
  --neon-alert: #ff0055;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* No scrolling */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle at 15% 50%,
      rgba(189, 0, 255, 0.1) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(0, 243, 255, 0.1) 0%,
      transparent 25%
    );
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  opacity: 0.3;
}

/* Dashboard Container */
.dashboard-container {
  width: 95vw;
  height: 90vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 50px rgba(0, 100, 200, 0.2);
  position: relative;
}

/* HUD Corners */
.dashboard-container::before,
.dashboard-container::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--neon-cyan);
  transition: all 0.3s ease;
}

.dashboard-container::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.dashboard-container::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(0, 243, 255, 0.2);
  padding-bottom: 1rem;
}

h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.subtitle {
  color: var(--neon-purple);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* Links Grid - Dense HUD Layout */
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Columns fixed */
  grid-template-rows: repeat(4, 1fr); /* 4 Rows fixed */
  gap: 1rem;
  height: 100%;
}

.dashboard-card {
  background: var(--card-bg);
  border: 1px solid transparent; /* Border handled by pseudo-elements or specific sides */
  border-left: 4px solid var(--neon-cyan); /* LCARS style bar */
  /* Irregular Tech Shape similar to Sci-Fi HUDs */
  clip-path: polygon(
    0 0,
    calc(100% - 30px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  padding: 1.5rem 1rem 1rem 1.5rem; /* Additional padding for shape */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* Internal tech lines/decorations */
.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(0, 243, 255, 0.05) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.dashboard-card:hover {
  background: rgba(0, 243, 255, 0.2);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
  border-left-width: 8px; /* Thicken the LCARS bar */
}

.dashboard-card:hover::before {
  transform: translateX(100%); /* Scan effect */
}

.dashboard-card::after {
  content: "ACCESS";
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 8px;
  color: var(--bg-color);
  background: var(--neon-cyan);
  padding: 2px 4px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.8;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.card-title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-url {
  color: var(--text-secondary);
  font-size: 0.7rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.card-status {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.5rem;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}
