@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary: #F15A25; /* Power Orange */
  --primary-hover: #e04f1a;
  --bg: #231F20; /* Black */
  --card-bg: rgba(109, 110, 113, 0.15); /* Glassmorphic dark grey */
  --text: #E6E7E8; /* Light Grey */
  --text-muted: #BCBEC0; /* Medium Grey */
  --border: rgba(188, 190, 192, 0.2); /* Medium grey with opacity */
  
  /* Additional theme colors */
  --spark-yellow: #F38C20;
  --signal-red: #CE2027;
  --forge-red: #690A14;
  --black: #231F20;
  --dark-grey: #6D6E71;
  --medium-grey: #BCBEC0;
  --light-grey: #E6E7E8;
  --white: #FFFFFF;
  
  /* Gradients */
  --grad-spark-red: linear-gradient(135deg, #F38C20 0%, #CE2027 100%);
  --grad-forge-black: linear-gradient(135deg, #690A14 0%, #231F20 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(241, 90, 37, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(105, 10, 20, 0.12) 0px, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

nav {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-logout {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Shared Alert Styles */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  border: 1px solid transparent;
  animation: alertIn 0.4s ease-out;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.alert-error {
  background: rgba(206, 32, 39, 0.08);
  border-color: rgba(206, 32, 39, 0.2);
  color: #f87171;
}

.alert-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  stroke: currentColor;
}

.alert_message {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.alert_close_button {
  background: none;
  border: none;
  color: currentColor;
  opacity: 0.6;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.alert_close_button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.alert_close_button svg {
  width: 1.25rem;
  height: 1.25rem;
}
