/* Members Section Styles */

/* CSS Variables for Scoresheet Styling */
:root {
  --scoresheet-border-radius: 8px;
  --scoresheet-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --scoresheet-shadow-hover: 0 4px 8px rgba(0,0,0,0.15);
  --scoresheet-transition: all 0.2s ease;
  --scoresheet-section-spacing: 1rem;
  --scoresheet-padding: 1rem;
  --white: #ffffff;
  --green: #0d5900;
  --gold: #dea136;
}

/* Main Members Container */
.members-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(13, 89, 0, 0.08);
}

/* Members Table Styles - Golf Scoresheet Style */
.members-table-container {
  overflow-x: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  margin: 1.5rem 0;
  border: 1px solid rgba(13, 89, 0, 0.12);
  transition: all 0.3s ease;
  position: relative;
}



.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table th,
.members-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(13, 89, 0, 0.08);
  text-align: center;
  vertical-align: middle;
  min-height: 3.5rem;
}

.members-table th {
  background: linear-gradient(135deg, var(--green) 0%, #0a6b00 50%, #0d5900 100%);
  color: var(--white);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.25rem 1.5rem;
}

.members-table .td-data {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(13, 89, 0, 0.08);
  font-weight: 500;
}

.members-table tbody tr:hover td {
  background: var(--goldHalf) !important;

}

.members-table tr:last-child td {
  border-bottom: none;
}

/* Member Action Buttons */
.member-action-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-action-btn-primary {
  background: var(--green);
  color: white;
}

.member-action-btn-primary:hover {
  background: #0d5900;
  transform: translateY(-1px);
}

.member-action-btn-danger {
  background: #dc3545;
  color: white;
}

.member-action-btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.member-action-btn-secondary {
  background: #6c757d;
  color: white;
}

.member-action-btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Member Actions Container */
.member-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.member-action-btn-small {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.member-action-btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Member Form Controls */
.member-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  min-width: 140px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 89, 0, 0.2);
  transform: translateY(-1px);
}

.member-checkbox {
  margin-right: 0.5rem;
  transform: scale(1.3);
  accent-color: var(--green);
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Team Selection Layout - Simplified for separate columns */
.team-select-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 3rem;
  padding: 0.5rem 0;
}

.lock-team-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0;
}

.lock-team-label {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

/* Team selection cell specific styling */
.members-table .team-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

/* Save Button Container */
.members-save-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding: 0 1.5rem;
}

/* Save Button */
.members-save-btn {
  background: linear-gradient(135deg, var(--green) 0%, #0a6b00 100%);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 89, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.members-save-btn:hover {
  background: linear-gradient(135deg, #0a6b00 0%, var(--green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 89, 0, 0.4);
}

/* Privacy Section */
.privacy-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(13, 89, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.privacy-control {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.privacy-label {
  font-weight: 600;
  color: #495057;
  min-width: 120px;
  margin-right: 1rem;
}

.privacy-select {
  flex: 1;
  max-width: 300px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: white;
  font-size: 1rem;
}

.privacy-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 89, 0, 0.1);
}

.privacy-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Privacy Save Button Container */
.privacy-save-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(13, 89, 0, 0.08);
}


/* Profile Table Styles */
.profile-table-container {
  margin-bottom: 2rem;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-table tr {
  border-bottom: 1px solid rgba(13, 89, 0, 0.08);
}

.profile-table tr:last-child {
  border-bottom: none;
}

.profile-label-cell {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(13, 89, 0, 0.03);
  width: 30%;
  vertical-align: middle;
  font-size: 1rem;
}

.profile-value-cell {
  padding: 1rem 1.5rem;
  background: white;
  vertical-align: middle;
  font-size: 1rem;
}

.profile-input {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.profile-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 89, 0, 0.2);
  transform: translateY(-1px);
}

/* Profile Save Button Container */
.profile-save-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(13, 89, 0, 0.08);
}

/* Offline Users Section */
.offline-users-section {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.offline-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.offline-users-header h4 {
  color: #856404;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.offline-users-close-btn {
  background: #856404;
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.offline-users-close-btn:hover {
  background: #6d5204;
  transform: scale(1.1);
}

/* Add Offline User Button */
.add-offline-user-row {
  border-top: 1px solid rgba(13, 89, 0, 0.1);
}

.add-offline-user-btn {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin: 0.5rem auto;
}

.add-offline-user-btn:hover {
  background: #0a4a00;
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.offline-users-description {
  color: #856404;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Invite Section */
.invite-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.invite-section h3 {
  color: var(--green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.invite-url {
  background: white;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  color: #dc3545;
  word-break: break-all;
}

.invite-copy-btn {
  background: var(--green);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.invite-copy-btn:hover {
  background: #0d5900;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .members-table-container {
    overflow-x: auto;
  }
  
  .members-table {
    min-width: 600px;
  }
  
  .privacy-control {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .privacy-label {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  
  .privacy-select {
    max-width: 100%;
  }
} 