/* Team Passport Web App Styles */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --border-radius: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Button-Gruppe im Profil horizontal anordnen */
.profile-header div:last-child {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.password-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-display input {
  flex: 1;
  background-color: #f5f5f5;
}

.help-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 5px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  color: #333;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page {
  min-height: 100vh;
  padding: 20px 0;
}

.hidden {
  display: none !important;
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-block;
  cursor: pointer;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background-color: #0069d9;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background-color: #f8f9fa;
}

.btn-small {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Login/Register Pages */
#login-page, #register-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
}

#login-page .card, #register-page .card {
  width: 100%;
  max-width: 400px;
}

/* Photo Upload */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  overflow: hidden;
}

#photo-preview i {
  font-size: 48px;
  color: #ccc;
}

#photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#photo-input {
  display: none;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 0;
  margin-bottom: 20px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .brand {
  margin: 0;
  font-size: 1.5rem;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.tab-button {
  flex: 1;
  padding: 15px;
  border: none;
  background-color: transparent;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
  color: var(--secondary-color);
}

.tab-button:hover {
  background-color: #f8f9fa;
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-button i {
  margin-right: 5px;
}

/* Sub-tab Navigation */
.tab-subheader {
  display: flex;
  margin-bottom: 20px;
  background-color: #f0f0f0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.subtab-button {
  flex: 1;
  padding: 10px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  text-align: center;
}

.subtab-button.active {
  background-color: white;
  font-weight: bold;
}

/* Lists */
.list {
  margin-bottom: 20px;
}

.list-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card-header {
  display: flex;
  margin-bottom: 10px;
}

/* Zu styles.css hinzufügen */
.member-actions .fas.fa-user-shield {
  color: #ffc107; /* Goldene Farbe für das Admin-Icon */
}

.btn.btn-primary .fas.fa-user-shield {
  color: white; /* Weißes Icon auf primärem Button */
}

/* Tooltip-Stil für bessere Benutzerführung */
[title] {
  position: relative;
  cursor: help;
}

/* Zu styles.css hinzufügen */
.member-actions .fas.fa-user-shield {
  color: #ffc107; /* Goldene Farbe für das Admin-Icon */
}

.btn.btn-primary .fas.fa-user-shield {
  color: white; /* Weißes Icon auf primärem Button */
}

/* Tooltip-Stil für bessere Benutzerführung */
[title] {
  position: relative;
  cursor: help;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 100;
  pointer-events: none;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 100;
  pointer-events: none;
}

/* Zu styles.css hinzufügen */
.team-members-count {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.team-members-count i {
  margin-right: 5px;
  color: var(--primary-color);
}

.team-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin-right: 15px;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-info {
  flex: 1;
}

.team-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-description {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.team-actions {
  display: flex;
  justify-content: flex-end;
}

/* Request Cards */
.request-card {
  margin-bottom: 15px;
}

.request-header {
  display: flex;
  margin-bottom: 10px;
}

.request-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.request-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.request-info {
  flex: 1;
}

.request-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.request-nickname {
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.request-date {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.request-about {
  margin-bottom: 15px;
}

.request-actions {
  display: flex;
  justify-content: flex-end;
}

.request-actions .btn {
  margin-left: 10px;
}

/* Member Cards */
.member-card {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
}

.member-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-info {
  flex: 1;
}

.member-name {
  font-weight: bold;
}

.member-nickname {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Profile Tab */
.profile-header {
  text-align: center;
  margin-bottom: 20px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#profile-name {
  margin-bottom: 5px;
}

#profile-nickname {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: #e9f5ff;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: bold;
}

.qrcode-container {
  margin: 20px auto;
  padding: 10px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
}

.info-row {
  display: flex;
  margin-bottom: 8px;
}

.info-label {
  font-weight: bold;
  width: 80px;
  color: var(--secondary-color);
}

.info-value {
  flex: 1;
}

/* Replace or add these styles to your styles.css file */
.scan-result {
  margin-bottom: 20px;
}

.scan-result-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.scan-result-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.scan-result-photo {
  width: 70px;
  height: 70px;
  border-radius: 35px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-right: 15px;
  overflow: hidden;
}

.scan-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-result-info {
  flex: 1;
}

.scan-result-info h3 {
  margin: 0 0 8px 0;
}

.scanner-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

#scanner-video {
  width: 100%;
  border-radius: var(--border-radius);
  background-color: #000;
  max-height: 300px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-actions .btn {
  margin-left: 10px;
}

/* Admin Badge */
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: #ffc107;
  color: #212529;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tab-button {
    font-size: 0.875rem;
    padding: 10px 5px;
  }
  
  .tab-button i {
    margin-right: 0;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .request-actions {
    flex-direction: column;
  }
  
  .request-actions .btn {
    margin-left: 0;
    margin-bottom: 10px;
  }
}

/* Add to your styles.css file */
.edit-team-btn {
  margin-left: 10px;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  font-size: 40px;
  font-weight: bold;
}

/* Add this to your styles.css file */
.team-select {
  width: 100%;
  height: 50px;
  border-width: 1px;
  border-color: #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 0 12px;
  background-color: #fff;
  appearance: menulist; /* Shows the dropdown arrow */
}

/* Add these styles to your styles.css file */
#edit-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  overflow: hidden;
}

#edit-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  font-size: 36px;
  font-weight: bold;
}

/* Add to your styles.css file */
.add-button {
  position: relative;
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.875rem;
  margin-left: 10px;
  cursor: pointer;
}

.add-button:hover {
  background-color: var(--primary-color);
  color: white;
}

