/**
 * GPU-M Log Analyzer - Error Popup Styles
 * Author: Bogdan Anton - GraphixLAB CH
 * Contact: contact@graphixlab.ch
 * Copyright © 2025 GraphixLAB CH. All rights reserved.
 * This file contains styles for error popups, ensuring consistent design in both Light and Dark modes.
 */

/* 🔹 Overlay: Prevents interaction with the page until the popup is closed */
.error-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(4px); /* Blurred effect for better focus */
    z-index: 9999; /* Ensures it covers everything */
}

/* 🔹 Popup Container */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; /* Default Light Mode */
    color: #232323;
    padding: 25px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000; /* Ensures it's above overlay */
    text-align: center;
    width: 550px;
    animation: fadeIn 0.3s ease-in-out;
}

/* 🔹 Dark Mode Popup */
.dark-mode .error-popup {
    background: #1b2a3a; /* Dark background */
    color: #fff; /* Light text for readability */
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
}

/* 🔹 Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 🔹 Popup Title */
.popup-content h2 {
    margin: 0;
    font-size: 22px;
}

/* 🔹 Popup Text */
.popup-content p {
    font-size: 20px;
    margin: 12px 0;
}

/* 🔹 Error Instructions */
.popup-instructions {
    text-align: left;
    margin-top: 15px;
    font-size: 14px;
}

.popup-instructions h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.popup-instructions ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 17px;
}

.popup-instructions ul li {
    margin-bottom: 5px;
}

/* 🔹 Popup Button Styling */
.popup-button {
    background-color: #232323;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease-in-out, transform 0.1s ease-in-out;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* 🔹 Hover & Active Effects */
.popup-button:hover {
    background-color: #2f68bd;
}

.popup-button:active {
    transform: scale(0.95);
}

/* 🔹 Dark Mode - Button Styling */
.dark-mode .popup-button {
    background-color: #2f68bd; /* Blue for dark mode */
    color: #fff;
}

.dark-mode .popup-button:hover {
    background-color: #fff;
    color: #232323;
}

/* 🔹 Remove Duplicate Definitions */
.dark-mode .popup-button {
    background-color: #fff;
    color: #232323;
}
