@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@400;700&display=swap');

body {
  background: linear-gradient(135deg, #f4e9d8 0%, #e8d9b8 100%);
  color: #3c2f2f;
  font-family: 'Lora', serif;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M10 10 H90 V90 H10 Z" fill="none" stroke="rgba(139,90,43,0.1)" stroke-width="1"/></svg>');
  background-size: 100px;
}

#login-section, #profile-section {
  background: #faf4e5;
  padding: 40px;
  border: 2px solid #8b5a2b;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(139, 90, 43, 0.2), inset 0 0 5px rgba(245, 222, 179, 0.5);
  width: 400px;
  max-width: 90%;
  margin: 0 auto;
}

#profile-section {
  width: 90%;
  max-width: 1200px;
}

.section-title {
  color: #6b4226;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(139, 90, 43, 0.3);
}

#login-form label {
  display: block;
  margin: 15px 0 5px;
  color: #8b5a2b;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
}

#login-form input {
  width: 100%;
  padding: 12px;
  background: #fffaf0;
  border: 1px solid #d2b48c;
  border-radius: 4px;
  color: #3c2f2f;
  font-family: 'Lora', serif;
  transition: all 0.3s;
}

#login-form input:focus {
  border-color: #8b5a2b;
  box-shadow: 0 0 8px rgba(139, 90, 43, 0.3);
  outline: none;
}

#login-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #8b5a2b, #d2b48c);
  border: none;
  border-radius: 4px;
  color: #fffaf0;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

#login-form button:hover {
  background: linear-gradient(45deg, #d2b48c, #8b5a2b);
  box-shadow: 0 0 12px rgba(139, 90, 43, 0.5);
}

#error-message {
  color: #a52a2a;
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: rgba(165, 42, 42, 0.1);
  border-radius: 4px;
}

#logout-button {
  background: linear-gradient(45deg, #a52a2a, #8b5a2b);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  color: #fffaf0;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  float: right;
  transition: all 0.3s;
}

#logout-button:hover {
  background: linear-gradient(45deg, #8b5a2b, #a52a2a);
  box-shadow: 0 0 12px rgba(165, 42, 42, 0.5);
}

#user-info p, #attributes p {
  margin: 10px 0;
  padding: 15px;
  background: #fffaf0;
  border: 1px solid #d2b48c;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(139, 90, 43, 0.1);
}

#user-info strong, #attributes strong {
  color: #6b4226;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

#graphs {
  margin-top: 40px;
}

.graph-container {
  margin-bottom: 40px;
  padding: 25px;
  background: #fffaf0;
  border: 1px solid #d2b48c;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(139, 90, 43, 0.15);
  overflow-x: auto;
}

.graph-title {
  color: #6b4226;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(139, 90, 43, 0.2);
}

.graph-line {
  stroke: #8b5a2b;
  stroke-width: 3;
  filter: drop-shadow(0 0 4px rgba(139, 90, 43, 0.5));
}

.graph-point {
  fill: #fffaf0;
  stroke: #8b5a2b;
  stroke-width: 2;
}

.graph-bar {
  fill: #8b5a2b;
  filter: drop-shadow(0 0 4px rgba(139, 90, 43, 0.5));
}

.graph-bar:hover {
  fill: #d2b48c;
}

.graph-axis path, .graph-axis line {
  stroke: #3c2f2f;
  stroke-width: 1;
}

.graph-axis text {
  fill: #6b4226;
  font-family: 'Lora', serif;
  font-size: 12px;
}

.graph-grid {
  stroke: #d2b48c;
  stroke-width: 1;
  stroke-dasharray: 4;
}

.graph-label {
  fill: #3c2f2f;
  font-family: 'Lora', serif;
  font-size: 14px;
}

.tooltip {
  position: absolute;
  background: #fffaf0;
  color: #3c2f2f;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #8b5a2b;
  font-family: 'Lora', serif;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(139, 90, 43, 0.2);
  pointer-events: none;
}
