/* Modern Modal Styles - Regulamin */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 20px;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  margin: auto;
  border: none;
  max-width: 900px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.3s;
  animation-name: animatetop;
  animation-duration: 0.3s;
  overflow: hidden;
}

@-webkit-keyframes animatetop {
  from {transform: translateY(-50px); opacity:0} 
  to {transform: translateY(0); opacity:1}
}

@keyframes animatetop {
  from {transform: translateY(-50px); opacity:0}
  to {transform: translateY(0); opacity:1}
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  opacity: 1;
  transform: scale(1.1);
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #00a651 0%, #00cc00 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #00a651;
}

.modal-body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 25px;
  line-height: 1.7;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #00a651;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

.modal-body .custom-list {
  list-style: none;
  padding-left: 0;
}

.modal-body .custom-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.modal-body .custom-list li i {
  position: absolute;
  left: 0;
  top: 12px;
}

.modal-body .info-card {
  background: #f8f9fa;
  border-left: 4px solid #00a651;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal-body .period-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
  border: 2px solid #2196f3;
  transition: all 0.3s ease;
}

.modal-body .period-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.modal-body .period-card i {
  font-size: 32px;
  color: #1976d2;
  display: block;
  margin-bottom: 10px;
}

.modal-body .period-card .period-date {
  font-size: 24px;
  font-weight: bold;
  color: #1565c0;
  margin-top: 8px;
}

.modal-body .contact-info {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.modal-body .contact-info a {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
}

.modal-body .contact-info a:hover {
  color: #1b5e20;
  text-decoration: underline;
}

.modal-body .copyright-section {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .modal-body {
    max-height: 60vh;
    padding: 20px 15px;
  }
  
  .modal-content {
    max-width: 95%;
    margin: 10px auto;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header div span {
    font-size: 20px !important;
  }
  
  .modal-header div i {
    font-size: 20px !important;
  }
}

.modal-footer {
  padding: 15px 25px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-footer .btn {
  transition: all 0.3s ease;
}

.modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
