/* Golf Society App — Main styles */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

body {
  line-height: 1.6;
}

#app {
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Buttons */
button {
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 1em;
}

button:hover {
  background: #f0f0f0;
}

button.primary {
  background: #007bff;
  color: white;
  border-color: #0056b3;
}

button.primary:hover {
  background: #0056b3;
}

/* Forms */
input, textarea, select {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Top 3 ranking highlight colors */
.rank-1 {
  background: #ffd700;
}

.rank-2 {
  background: #c0c0c0;
}

.rank-3 {
  background: #cd7f32;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background: #f8f9fa;
  font-weight: 600;
}

tr:hover {
  background: #f8f9fa;
}

/* Cards */
.card {
  background: white;
  border-radius: 4px;
  padding: 1em;
  margin-bottom: 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation */
nav {
  background: #333;
  color: white;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin-right: 1em;
}

nav a:hover {
  text-decoration: underline;
}

/* Messages */
.error {
  background: #fee;
  color: #c00;
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1em;
}

.success {
  background: #efe;
  color: #070;
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1em;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* App loading */
.app-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #888;
  font-size: 1.1em;
}

/* Login page */
.login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2em 1em;
  min-height: 100vh;
  background: #f5f5f5;
}

.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  font-size: 2.5em;
  margin-bottom: 0.25em;
}

.login-card h1 {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 0.1em;
}

.login-card h2 {
  font-size: 1.1em;
  font-weight: 400;
  color: #666;
  margin-top: 0;
  margin-bottom: 1.25em;
}

.form-group {
  text-align: left;
  margin-bottom: 1em;
}

.form-group label {
  display: block;
  font-size: 0.875em;
  font-weight: 600;
  margin-bottom: 0.3em;
  color: #444;
}

.form-group input {
  width: 100%;
}

.btn-full {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  margin-top: 0.5em;
}

.forgot-password {
  margin-top: 1em;
  font-size: 0.875em;
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Nav */
.nav-brand {
  font-size: 1.1em;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.nav-email {
  font-size: 0.875em;
  opacity: 0.8;
}

/* Page content */
.page-content {
  padding: 1em;
  max-width: 960px;
  margin: 0 auto;
}
