/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and Main Colors */
body {
  background-color: #1c1c1e; /* Dark charcoal background */
  color: #e5e5e7; /* Light grey text */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.header {
  background-color: #2c2c2e; /* Dark grey for header */
  padding: 20px;
  text-align: center;
  font-size: 1.5em;
  color: #e5e5e7;
  border-bottom: 1px solid #3a3a3c;
}

/* Sidebar Navigation */
.sidebar {
  background-color: #2c2c2e; /* Dark grey */
  width: 200px;
  padding-top: 20px;
  height: 100vh;
  position: fixed;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 15px;
  color: #e5e5e7;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar li.active,
.sidebar li:hover {
  background-color: #3a3a3c; /* Slightly lighter grey for active/hover */
  color: #0a84ff; /* Blue accent for active/hover */
}

/* Main Content */
.container {
  display: flex;
}

.content {
  margin-left: 220px;
  padding: 40px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

/* Button */
.cta-button {
  padding: 10px 20px;
  background-color: #0a84ff; /* Blue accent for buttons */
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #5ac8fa; /* Lighter blue on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Adjust sidebar to be a top navigation bar on mobile */
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3c;
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .sidebar li {
    padding: 10px;
    text-align: center;
    width: 100%;
  }

  /* Shift content below the sidebar */
  .container {
    flex-direction: column;
  }

  .content {
    margin-left: 0;
    padding: 20px;
  }

  /* Adjust text sizes for smaller screens */
  .header h1 {
    font-size: 1.2em;
  }

  h2 {
    font-size: 1.4em;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 0.9em;
  }
}

/* Login Page Styles */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #1c1c1e; /* Dark background */
  color: #e5e5e7; /* Light text color */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.login-container {
  background-color: #2c2c2e; /* Slightly lighter dark background */
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #e5e5e7;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-size: 0.9em;
  color: #a1a1a3;
  text-align: left;
}

input[type="text"],
input[type="password"] {
  padding: 12px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  background-color: #3a3a3c; /* Input field background */
  color: #e5e5e7;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #a1a1a3;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border: 1px solid #0a84ff; /* Blue outline on focus */
}

.login-button {
  padding: 12px;
  background-color: #0a84ff; /* Primary blue button color */
  color: #fff;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-button:hover {
  background-color: #5ac8fa; /* Lighter blue on hover */
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: center;
}