* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url("../img/body-bg.jpg");
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Tahoma", "Arial", sans-serif;
  min-height: 100vh;
  padding: 20px;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1d254c 0%, #5b3482e3 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 30px;
  position: relative;
  padding-top: 57px !important;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #fff;
  font-size: 29px;
  background: linear-gradient(135deg, #3e4c8a 0%, #0f0916ed 100%);
  position: absolute;
  top: 0px;
  left: 50%;
  width: auto;
  transform: translate(-50%);
  margin-bottom: 30px;
  display: table-row;
  padding: 10px 20px;
  border-radius: 0px 0px 30px 30px;
}

header p {
  color: #666;
  font-size: 1.1em;
}
.mb-10 {
  margin: 10px 0px;
}
.center {
  text-align: center;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.day-selector {
  flex: 1;
}

.day-selector label {
  font-weight: bold;
  margin-left: 10px;
  color: #333;
}

.select-box {
  padding: 10px 15px;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  min-width: 200px;
  width: 100%;
}

.buttons-group {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}
.modal-body .btn {
  width: 100%;
}
.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

.btn-success {
  background: #48bb78;
  color: white;
}

.btn-success:hover {
  background: #38a169;
  transform: translateY(-2px);
}

.btn-danger {
  background: #f56565;
  color: white;
}

.btn-danger:hover {
  background: #e53e3e;
  transform: translateY(-2px);
}

.btn-small {
  padding: 5px 10px;
  font-size: 0.9em;
}
.matches-table-container h2 {
  border: 1px solid white;
  text-align: center;
  margin: 0px auto;
  margin-bottom: 0px;
  width: fit-content;
  margin-bottom: 22px;
  border-radius: 10px;
  padding: 10px;
  color: white;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.matches-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.matches-table th,
.matches-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #e2e8f036;
  color: white !important;
}

.matches-table tbody tr:hover {
  background: #00000052;
}

.empty-message {
  text-align: center;
  color: #a0aec0;
  padding: 40px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  margin: 50px auto;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.modal-header h2 {
  color: #333;
}

.close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #a0aec0;
  transition: color 0.3s;
}

.close:hover {
  color: #f56565;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .controls {
    flex-direction: column;
  }

  .buttons-group {
    width: 100%;
  }

  .btn {
    flex: 1;
  }

  .matches-table th,
  .matches-table td {
    padding: 10px;
    font-size: 0.9em;
  }
}

.active {
  display: block;
}
.unactive {
  display: none;
}

.custom-alert {
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #27398a 64%, #764ba28c 100%);
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: "Cairo", sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: all 0.5s ease;
  z-index: 9999;
}

.custom-alert.success {
  border-left: 5px solid #262b25;
  border-right: 5px solid #262b25;
}

.custom-alert.hide {
  opacity: 0;
  transform: translateY(-20px);
}


@media only screen and (max-width: 768px) {
    header h1 {
    font-size: 19px;
    border-radius: 0px 0px 19px 19px;
    }
}
