:root {
  --primary: #64b5f6;
  --primary-dark: #1976d2;
  --background: #0a192f;
  --text: #fff;
  --text-light: rgba(255, 255, 255, 0.7);
  --error: #dc2626;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--background);
  z-index: -1;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: transparent;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: rgba(16, 42, 87, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-container h1 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#login-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#login-form input::placeholder {
  color: var(--text-light);
}

#login-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

#login-form button {
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

#login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

#error-message {
  color: var(--error);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-background);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary);
}

#logout-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

#logout-button:hover {
  background: var(--primary-hover);
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-info-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.profile-info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-light);
}

.profile-info-card p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.graphs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.graph-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.graph-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--text-light);
}

.tooltip {
  position: absolute;
  background: var(--card-background);
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 0.25rem;
  pointer-events: none;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
