:root {
  --logout-modal-primary-color: #0072bc;
  --logout-modal-secondary-color: #fdf005;
  --logout-modal-background-color: #f4ebb6;
  --logout-modal-danger-color: #dc3545;
  --logout-modal-text-color: #333;
  --logout-modal-primary-font: "Anton", serif;
  --logout-modal-secondary-font: "Smooch Sans", serif;
}

.logout-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 114, 188, 0.15) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logout-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.logout-modal-content {
  background: linear-gradient(
    145deg,
    var(--logout-modal-background-color) 0%,
    #ffffff 100%
  );
  border-radius: 24px;
  padding: 40px 35px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 25px 80px rgba(0, 114, 188, 0.25),
    0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(253, 240, 5, 0.3);
  transform: scale(0.8) translateY(-20px);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logout-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--logout-modal-primary-color) 0%,
    var(--logout-modal-secondary-color) 50%,
    var(--logout-modal-primary-color) 100%
  );
}

.logout-modal-header {
  margin-bottom: 25px;
  position: relative;
}

.logout-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--logout-modal-danger-color) 0%,
    #b02a37 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4),
    0 6px 15px rgba(220, 53, 69, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.9);
  position: relative;
  animation: iconPulse 2s ease-in-out infinite;
}

.logout-modal-icon i {
  color: white;
  font-size: 24px;
}

.logout-modal-title {
  font-family: var(--primary-font-family, "Anton", serif);
  font-size: 24px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.logout-modal-message {
  font-family: var(--secondary-font-family, "Smooch Sans", serif);
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.logout-modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  justify-content: center;
  flex-wrap: wrap;
}

.logout-btn-confirm,
.logout-btn-cancel {
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 120px;
  font-family: var(--logout-modal-secondary-font);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.logout-btn-confirm {
  background: linear-gradient(
    135deg,
    var(--logout-modal-danger-color) 0%,
    #b02a37 100%
  );
  color: white;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4),
    0 3px 8px rgba(220, 53, 69, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.logout-btn-confirm:hover {
  background: linear-gradient(135deg, #b02a37 0%, #8c1f2a 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.5),
    0 5px 12px rgba(220, 53, 69, 0.3);
}

.logout-btn-cancel {
  background: linear-gradient(
    135deg,
    var(--logout-modal-primary-color) 0%,
    #005a9e 100%
  );
  color: white;
  box-shadow: 0 6px 20px rgba(0, 114, 188, 0.4),
    0 3px 8px rgba(0, 114, 188, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.logout-btn-cancel:hover {
  background: linear-gradient(135deg, #005a9e 0%, #004080 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 114, 188, 0.5),
    0 5px 12px rgba(0, 114, 188, 0.3);
}

.logout-btn-confirm::before,
.logout-btn-cancel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.logout-btn-confirm:active::before,
.logout-btn-cancel:active::before {
  width: 300px;
  height: 300px;
}

.logout-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: linear-gradient(
    135deg,
    rgba(108, 117, 125, 0.1) 0%,
    rgba(108, 117, 125, 0.2) 100%
  );
  border: 2px solid rgba(108, 117, 125, 0.3);
  border-radius: 50%;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  font-weight: bold;
  z-index: 1001;
}

.logout-modal-close:hover {
  color: var(--logout-modal-danger-color);
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.2) 100%
  );
  border-color: var(--logout-modal-danger-color);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3),
    0 3px 8px rgba(220, 53, 69, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .logout-modal-content {
    margin: 15px;
    padding: 30px 25px;
    max-width: none;
    border-radius: 20px;
  }

  .logout-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }

  .logout-modal-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .logout-modal-message {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .logout-modal-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .logout-btn-confirm,
  .logout-btn-cancel {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    min-width: unset;
  }

  .logout-modal-close {
    top: 15px;
    right: 20px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .logout-modal-content {
    margin: 10px;
    padding: 25px 20px;
    border-radius: 15px;
  }

  .logout-modal-icon {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .logout-modal-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .logout-modal-message {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .logout-modal-buttons {
    gap: 10px;
    margin-top: 25px;
  }

  .logout-btn-confirm,
  .logout-btn-cancel {
    padding: 14px 18px;
    font-size: 14px;
  }

  .logout-modal-close {
    top: 12px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
