* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

/* Login Page Styles */
#login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.login-card h2 {
  font-family: 'Playfair Display', serif;
  color: #333;
  margin-bottom: 10px;
}

.login-card .sub {
  color: #666;
  margin-bottom: 30px;
  font-size: 14px;
}

.login-card input, .login-card select {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.login-card input:focus, .login-card select:focus {
  border-color: #667eea;
  outline: none;
}

.login-card button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s;
}

.login-card button:hover {
  transform: translateY(-2px);
}

/* Dashboard Styles */
#dashboard {
  animation: slideUp 0.5s ease;
}

header {
  background: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logout-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.motivation-bar {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.datetime {
  font-weight: 500;
  color: #555;
}

.user-info {
  font-size: 14px;
  color: #667eea;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
}

.card button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 15px;
  transition: opacity 0.3s;
}

.card button:hover {
  opacity: 0.9;
}

#chart_div {
  height: 200px;
  margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .motivation-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}