/* Import Open Sans from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f1f2f6;
  color: #333;
  line-height: 1.6;
}

/* Centered body for login */
body.centered-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f1f2f6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f1f2f6;
  box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #ffffff;
  border-radius: 0 0 20px 20px;
}

header img {
  height: 50px;
}

.user-menu {
  position: relative;
}

.user-menu button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #ffffff;
  border-radius: 10px;
  z-index: 1;
}

.user-menu:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f2f6;
}

/* Main dashboard layout */
main {
  padding: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid > div {
  padding: 1rem;
  border-radius: 20px;
  background: #f1f2f6;
  box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

/* Login Page */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
  border-radius: 20px;
  background: #f1f2f6;
  box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.login-container img.logo {
  width: 100px;
  margin-bottom: 1.5rem;
}

.login-container input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.75rem 0;
  border: none;
  border-radius: 10px;
  background: #f1f2f6;
  box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #f1f2f6;
  box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
  transition: all 0.2s ease;
}

.login-container button:hover {
  box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
}

.error-msg {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.grid > div {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  height: 350px;   /* 👈 fixes stretching */
}

.grid canvas {
  width: 100% !important;
  height: 100% !important;
}
