:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  /* Removed flex center to fix footer/header alignment */
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 120px auto 60px; /* Top margin for header, bottom for footer capability */
  padding: 20px;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 800;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ccc;
}

input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--primary), #ff8e8e);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.error-msg {
  background: rgba(255, 107, 107, 0.2);
  border-left: 4px solid var(--primary);
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}
.stat-label {
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.property-list {
  margin-top: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th {
  text-align: left;
  padding: 15px;
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
}

td {
  padding: 15px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.amount-pos {
  color: #ff6b6b;
  font-weight: 600;
}
.badge {
  background: var(--secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.logout-btn:hover {
  background: var(--primary);
  color: #fff;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-right: 15px;
}

.player-info {
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .container {
    width: 100%;
    padding: 10px;
    box-sizing: border-box; /* Prevent padding from causing overflow */
  }

  .glass-card {
    padding: 15px; /* Reduce padding to save space */
    margin-top: 20px;
  }

  /* Make table scrollable horizontally */
  .property-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 500px; /* Force minimum width to trigger scroll if needed */
  }

  /* Fix stats grid for very small screens */
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
