/* Modal Overlay */
.topluyo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.topluyo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.topluyo-modal-container {
  background: var(--back, #1a1a1a);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
  transition: all 0.2s ease;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body:not(.theme-dark) .topluyo-modal-container {
  background: var(--back, #ffffff);
  border-color: var(--border, rgba(0, 0, 0, 0.1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.topluyo-modal-overlay.active .topluyo-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal Header */
.topluyo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.topluyo-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--front, #ffffff);
}

body:not(.theme-dark) .topluyo-modal-title {
  color: var(--front, #000000);
}


/* FIXED BY SEKO */
.topluyo-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  color: var(--front, #ffffff);
  opacity: 0.8;
  font-size: 16px;
  white-space: nowrap;
}

body:not(.theme-dark) .topluyo-modal-close {
  color: var(--front, #000000);
}

.topluyo-modal-close:hover {
  background: var(--light, rgba(255, 255, 255, 0.1));
  opacity: 1;
}

body:not(.theme-dark) .topluyo-modal-close:hover {
  background: var(--light, rgba(0, 0, 0, 0.1));
}

/* Modal Content */
.topluyo-modal-content {
  margin-bottom: 24px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  font-size: 14px;
  line-height: 1.5;
}

body:not(.theme-dark) .topluyo-modal-content {
  color: var(--text-secondary, rgba(0, 0, 0, 0.7));
}

/* Modal Footer */
.topluyo-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topluyo-modal-button {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.topluyo-modal-button.cancel {
  background: var(--light, rgba(255, 255, 255, 0.1));
  color: var(--front, #ffffff);
}

body:not(.theme-dark) .topluyo-modal-button.cancel {
  background: var(--light, rgba(0, 0, 0, 0.1));
  color: var(--front, #000000);
}

.topluyo-modal-button.cancel:hover {
  background: var(--light-hover, rgba(255, 255, 255, 0.15));
}

body:not(.theme-dark) .topluyo-modal-button.cancel:hover {
  background: var(--light-hover, rgba(0, 0, 0, 0.15));
}

.topluyo-modal-button.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ff1111;
  border: none;
  color: #ffffff;
  opacity: 0.8;
  white-space: nowrap;
}

.topluyo-modal-button:hover {
  opacity: 1;
  white-space: nowrap;
  transform: scale(0.98);
}
