/* Algemene instellingen */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #FFF8EE;
  margin: 0;
  padding: 0;
  color: #3a3228;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

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

a {
  color: #3a3228;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.card{
  align-items: center;
  margin: 1rem 0;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.12);
  padding: 1rem;
  overflow: hidden;
}


/* Navigatie */
/* === Algemeen === */
.navbar {
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #FF6B35;
}

.team-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-select label {
  color: white;
}

/* === Hamburger === */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: black;
  font-size: 1.5rem;
  cursor: pointer;
}

  @keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
  } 

/* Tabel-overzichten */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  display: table;
  vertical-align: middle;
}

.right{
  text-align: right;
}

.table th, .table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f5d9c0;
}

.table th {
  background-color: #FFF3CD;
}

.table .highlight {
  background-color: #FFE0B2;
}

/* Formulieren */
form {
  background-color: #fff;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.no_css_form{
  background-color: rgba(0, 0, 0, 0);
  padding: 0;
  margin: 0;
  border-radius: 0px;
  box-shadow: none;
}

input[type="text"], input[type="email"], input[type="password"], input[type="file"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #f5c6a0;
  border-radius: 6px;
  box-sizing: border-box;
}

label {
  font-weight: bold;
}

button, input[type="submit"] {
  background-color: #FF6B35;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover, input[type="submit"]:hover {
  background-color: #e0521c;
}

/* Wedstrijden */
.game{
    background-color: white;
    border: 1px solid #f5d9c0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.game_detail{
    background-color: white;
    border: 1px solid #f5d9c0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-items: middle;
}

.game_detail button{
  margin: 0 10px 0 10px;
}

.game.input {
  border-left: 5px solid #44BFA3;
}

.game.confirm {
  border-left: 5px solid #F7C948;
}

.upload-area {
  margin: 2rem 0;
}

.upload-label {
  border: 2px dashed #FF6B35;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  background-color: #FFF8EE;
  color: #FF6B35;
  cursor: pointer;
  display: block;
  transition: background-color 0.3s, border-color 0.3s;
  position: relative;
}

.upload-label:hover {
  background-color: #ffe8d6;
  border-color: #e0521c;
}

.upload-label i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-label p {
  font-size: 1rem;
  margin: 0;
}

.upload-label input[type="file"] {
  display: none;
}

#uploadedFiles {
  margin-top: 1rem;
}

.uploaded-file {
  background-color: #FFF3CD;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview{
  height: 3em;
}
.remove-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background-color: #c0392b;
}

.progress-bar {
  width: 100%;
  background-color: #f5d9c0;
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
  margin-top: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: #FF6B35;
  width: 0%;
  transition: width 0.3s ease;
}


/* Spelersprofielen */
.player-card {
  align-items: center;
  margin: 1rem 0;
  display: flex;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.12);
  padding: 1rem;
  overflow: hidden;
}

.player-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: 1rem;
}

.player-button{
  background-color: #44BFA3;
}

.player-button:hover{
  background-color: #35a88e;
}

.player-form{
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.12);
}

.player-card.uncomplete {
  border-left: 5px solid #e74c3c;
}

.red{
  display: inline;
  color: #e74c3c;
}

.edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFF3CD;
  border: none;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  color: #3a3228;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.edit-btn:hover {
  background: #f5d9a0;
}

.edit-btn i {
  pointer-events: none;
}

/* Facturen */
.invoice{
    background-color: white;
    border: 1px solid #f5d9c0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.invoice.paid {
  border-left: 5px solid #44BFA3;
}

.invoice.unpaid {
  border-left: 5px solid #e74c3c;
  background-color: #fdecea;
}

.invoice.canceled {
    border-left: 5px solid #000000;
    text-decoration: line-through;
}

/* Gebruikersbeheer */
.user-list {
  list-style: none;
  padding: 0;
  width: 100%;
}

.user-list li {
  padding: 0.5rem;
  border-bottom: 1px solid #f5d9c0;
}

/* Login/Registratie */
.auth-container {
  max-width: 400px;
  margin: auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.12);
  margin-top: 5vh;
}

.auth-container h2 {
  text-align: center;
}

.auth-container input {
  margin-bottom: 1rem;
}

.strength-meter {
  height: 8px;
  background: #f5d9c0;
  margin-bottom: 5px;
  border-radius: 4px;
  overflow: hidden;
}

#strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  background-color: #FF6B35;
}

.feedback {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.center{
  text-align: center;
}

/*Navigatie*/

.topnav {
  position: relative;
  top: 20px;
  margin: 0 auto;
  max-width: 1500px;
  background-color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
  z-index: 999;
}

.team-select select{
  margin: 0;
  padding: 5px;
}

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.topnav li {
  margin: 0.5rem 0.75rem;
}

.topnav a {
  text-decoration: none;
  color: #3a3228;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.topnav a:hover {
  color: #FF6B35;
}

.topnav i {
  font-size: 1.1rem;
}

.team-selector {
  margin-left: auto;
}

.team-selector select {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #f5c6a0;
  font-size: 1rem;
  background-color: #FFF8EE;
  cursor: pointer;
}


.tr{
    display: table-row;
}

.td{
    display: table-cell;
    padding: 0.5rem;
    border-bottom: 1px solid #f5d9c0;
    vertical-align: middle;
}

.th{
    background-color: #FFF3CD;
    display: table-cell;
    font-weight: bold;
    padding: 0.5rem;
}

button:disabled{
  background-color: #c4b5a5;
}

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

/*Debug*/
.debug{
  color: #C0392B;
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
  z-index: 999;
  position: fixed;
  bottom: 10px;
  left: 10px;
}

/* Help menu */
.help-button{
  background-color: white;
  border: 1px solid #f5c6a0;
  position: fixed;
  right: 10px;
  bottom: 10px;
  color: #3a3228;
  padding: 0;
  margin: 0;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  z-index: 9999;
}

.help-button:hover{
  background: #FFF8EE;
}

.help-content{
  position: fixed;
  bottom: 80px;
  right: 10px;
  background-color: white;
  border: 1px solid #f5c6a0;
  padding: 10px;
  min-width: 300px;
  min-height: 300px;
  border-radius: 12px;
  max-width: calc(100% - 40px);
  z-index: 9999;
  box-shadow: 4px 12px 11px -6px rgba(255, 107, 53, 0.2);
}

#help-content{
  display: none;
}

#help-content.active {
    display: block;
}

.help-content form{
  padding: 0;
  margin: 0;
  width: 100%;
}

.help-content form textarea{
  min-height: 10em;
}

.help-content:after{
	content: '';
	position: absolute;
	bottom: 0;
	right: 20px;
  width: 0;
	height: 0;
	border: 1.063em solid transparent;
	border-top-color: #f5c6a0;
	border-bottom: 0;
	border-right: 0;
	margin-left: -0.531em;
	margin-bottom: -1.062em;
}



/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 1rem;
  }
}

@media (max-width: 768px) {

  .hamburger {
    display: block;
    background: none;
  }

  .hamburger:hover{
    background: none;
  }

  .navbar{
    padding: 0;
  }
  .nav-links {
    flex-direction: column;
    width: 100vw;
    background-color: #FFF8EE;
    position: absolute;
    top: 99%;
    left: 0;
    display: none;
    padding: 20px;
    box-shadow: 4px 12px 11px -6px rgba(255, 107, 53, 0.2);
    align-items: baseline;
    width: calc(100% - 40px);
  }

  .nav-links.show {
    display: flex;
    animation: fadeIn 0.5s ease;
    background-color: white;
  }
  
  .container {
    padding: 1rem;
  }

  .table {
    font-size: 0.9rem;
    overflow-x: auto;
  }

  .player-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-card img {
    margin-bottom: 1rem;
  }

  .auth-container {
    padding: 1rem;
  }

  form {
    padding: 1rem;
  }

  input, button, textarea, select {
    font-size: 1rem;
  }

  .team-selector {
    width: 100%;
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  .team-selector select {
    width: 100%;
  }

  .upload-label {
    padding: 1.5rem;
  }

  .upload-label i {
    font-size: 1.5rem;
  }

  .upload-label p {
    font-size: 0.95rem;
  }

  .flex{
    flex-direction: column;
    justify-content: space-evenly;
    align-items: unset;
    gap: 10px;
  }
}

.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,248,238,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader.active {
  visibility: visible;
  opacity: 1;
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dots div {
  width: 12px;
  height: 12px;
  background: #FF6B35;
  border-radius: 50%;
  animation: pulse 1s infinite ease-in-out;
}

.dots div:nth-child(2) { animation-delay: 0.2s; }
.dots div:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.help-text{
  font-size: 0.9rem;
  margin-top: 0;
}
