:root {
    --accent-rgb: 233, 242, 191;
}

/* Popup-Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
  
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}
  
.popup-box {
    background-color: var(--primary);
    border: 1px solid var(--accent);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
  
.popup-overlay.active .popup-box {
    transform: translateY(0);
    opacity: 1;
}
  
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
  
.popup-close:hover {
    transform: scale(1.2);
}
  
  .popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .popup-icon.success {
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
  }
  
  .popup-icon.error {
    background-color: rgba(255, 80, 80, 0.1);
    color: #ff5050;
  }
  
  .popup-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
  }
  
.popup-message {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.popup-button {
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}
  
.popup-button:hover {
    background-color: rgba(var(--accent-rgb), 0.9);
    transform: translateY(-2px);
}