/* Reset and fonts */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  background: #F4F7FA;
  color: #333;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* Login container */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
}
.login-container h2 {
  font-family: 'Poppins', sans-serif;
  color: #1E90FF;
  margin-bottom: 20px;
}
.login-container input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.login-container button {
  width: 95%;
  padding: 12px;
  background: linear-gradient(90deg,#1E90FF,#00CED1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.login-container button:hover {
  opacity: 0.9;
}
.error { color: red; margin-top: 10px; }

/* Dashboard header */
h2 { color: #1E90FF; font-family: 'Poppins', sans-serif; margin-bottom: 20px; }
/* Highlight personal best header */
h3 { color: #FFD700; margin-top: 30px; font-family: 'Poppins', sans-serif; }

.logout {
  float: right;
  padding: 8px 16px;
  background: #FF6347;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.logout:hover { opacity: 0.8; }

/* Forms */
.result-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}
.result-form input, .result-form select, .result-form button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.result-form button {
  grid-column: span 2;
  background: linear-gradient(90deg,#1E90FF,#00CED1);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
.result-form button:hover { opacity: 0.9; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
th, td {
  padding: 12px 15px;
  text-align: left;
}
th {
  background: #00CED1;
  color: white;
  font-family: 'Poppins', sans-serif;
}
tr:nth-child(even) { background: #f8f8f8; }
tr:hover { background: #E0F7FA; }

/* Cards for mobile */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th { display: none; }
  td {
    position: relative;
    padding-left: 50%;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
  }
  td:before {
    position: absolute;
    left: 15px;
    top: 12px;
    font-weight: bold;
    white-space: nowrap;
  }
  td:nth-of-type(1):before { content: "Event"; }
  td:nth-of-type(2):before { content: "Location"; }
  td:nth-of-type(3):before { content: "Size"; }
  td:nth-of-type(4):before { content: "Stroke"; }
  td:nth-of-type(5):before { content: "Time"; }
  td:nth-of-type(6):before { content: "Date"; }
  td:nth-of-type(7):before { content: "Action"; }
}
