/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f7f9;
}

/* Login page styles */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

ul {
  list-style-type: none;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #2980b9;
}

.error-message {
  color: #e74c3c;
  margin-bottom: 15px;
  text-align: center;
  min-height: 20px;
}

/* Profile page styles */
.profile-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
}

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

.logout-btn {
  padding: 8px 16px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.graph-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 25px;
}

.graph-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.loading {
  text-align: center;
  padding: 30px;
  font-size: 18px;
  color: #7f8c8d;
}

/* SVG styles */
svg {
  width: 100%;
  height: auto;
  max-height: 300px;
  overflow: visible;
}

/* Responsive graph container */
.graph-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

/* Make the graph grid responsive */
@media (min-width: 768px) {
  .graph-container {
      grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
}

@media (max-width: 480px) {
  .graph-card {
      padding: 10px;
  }
  
  .graph-card h3 {
      font-size: 14px;
      margin-bottom: 10px;
  }
  
  .section-title {
      font-size: 18px;
  }
}