/* Reset & basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /*--color-bg-light: #f9f9f9;
  --color-text-light: #222; */
  --color-primary: #7b5cff;       /* purple */
  --color-primary-hover: #5a3dcc; /* darker purple */
  /*--color-bg-dark: #121212;
  --color-text-dark: #eee; */
  --color-bg-light: #121212;
  --color-text-light: #eee;
  --color-accent: #bb86fc;        /* bright purple accent */
  --transition-speed: 0.4s;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
  line-height: 1.6;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-err {
  background-color: #f87171; /* Tailwind's red-400 */
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  min-width: 250px;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast-inf {
  background-color: #559c4c; /* Tailwind's red-400 */
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  min-width: 250px;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast-err.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-inf.show {
  transform: translateX(0);
  opacity: 1;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Header & Nav */
header {
  background: var(--color-primary);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo {
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 1.2px;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  padding: 6rem 1rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 1.1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-primary-hover);
}

.btn {
  background-color: var(--color-primary);
  color: white;
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  box-shadow: 0 6px 8px rgba(123, 92, 255, 0.4);
}

.btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 10px 15px rgba(123, 92, 255, 0.6);
}

/* Sections */
.section {
  padding: 3rem 1rem;
  text-align: center;
}

.section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1.1px;
}

.section p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-primary-hover);
  font-weight: 500;
  font-size: 1.1rem;
}

.section-left {
  padding: 3rem 1rem;
  text-align: left;
}

.section-left h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1.1px;
}

.section-left p {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--color-primary-hover);
  font-weight: 500;
  font-size: 1.1rem;
}

.section-right {
  padding: 3rem 1rem;
  text-align: right;
}

.section-right h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1.1px;
}

.section-right p {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--color-primary-hover);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Cards */
.cards {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.card {
  background: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 1.8rem;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.card p {
  font-weight: 400;
  color: var(--color-text-light);
}

/* Footer */
footer {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  user-select: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: #bbb;
  font-size: 1.6rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  user-select: none;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  nav {
    justify-content: space-between;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Change link colours to not show up on mobile */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  nav {
    justify-content: space-between;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
}

.sidebar a.active {
  font-weight: bold;
  color: var(--highlight-color, #007acc);
  text-decoration: underline;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
  width: 320px;
  padding: 12px 16px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #eee;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  box-shadow: 0 0 8px #3b82f6; /* nice blue glow */
  background: #1a1a1a;
}

textarea {
  width: 500px;
  padding: 12px 16px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #eee;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
  resize: none;
}

button {
  width: 140px;
  padding: 12px 0;
  margin: 12px 8px 0 8px;
  background: #aa19bd;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.5);
}

button:hover {
  background: #2563eb; /* darker blue on hover */
  box-shadow: 0 6px 10px rgba(37, 99, 235, 0.7);
}

button:active {
  background: #1d4ed8; /* even darker on click */
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.9);
}

button:disabled {
  background: #555;
  cursor: not-allowed;
  box-shadow: none;
}

#userStatusBtn {
  width: auto;
  display: none;
  cursor: pointer;
  background: transparent;
  color: #90cdf4;
  border: none;
  font-size: 0.95rem;
  padding: 0.5rem;
  text-decoration: underline;
}

#deleteAccountBtn {
  background-color: red;
  margin-top: 2rem;
}

ul {
  list-style: none; 
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1;
}

li::before {
  content: "> ";
  position: relative;
  left: 0;
  color: #ff4b4b;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.25;
}

li:hover::before {
  content: "$ ";
  color: #04b146;
  transform: translateX(3px);
  transition: 0.2s ease;
}

.dropdown-section {
  margin-bottom: 1rem;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-header {
  background: #222;
  color: #fff;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

.dropdown-content {
  padding: 1rem;
  display: none;
  background: #111;
  color: #ccc;
  display: none
}

.dropdown-content.open {
  display: block;
}


#sidebar {
  width: 220px;
  height: 100vh;
  background: #111;
  color: white;
  padding: 1rem;
  transition: transform 0.3s ease;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
}

#sidebar .logo {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

#sidebar .nav {
  list-style: none;
  padding: 0;
}

#sidebar .nav li {
  margin: 1rem 0;
}

#sidebar .nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
  }
}

