/**
 * Backend Styles
 *
 * This CSS file contains styles for the backend output of the "RIS Version Switcher"
 * plugin. These styles control the visual appearance and layout of version switcher information displayed on the WP dashboard.
 *
 * @package RIS Version Switcher - v1.0 - 19 November, 2024
 */
/* General styles for the wrapper */
.risvs-wrap {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* Title styling */
.risvs-wrap h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Form styles */
#ris-switcher-form,
#core-ris-switcher-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Section headings */
#ris-switcher-form h2,
#core-ris-switcher-form h2 {
    font-size: 18px;
    color: #444;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Dropdown styles */
#ris-switcher-form select,
#core-ris-switcher-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* Current plugin version display */
#ris-switcher-form #current-plugin-version {
    margin: 10px 0 20px;
    padding: 10px;
    background-color: #eef;
    border: 1px solid #bbd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    display: none; /* Hidden by default */
}

/* Button styles */
#ris-switcher-plugin,
#ris-switcher-core {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

#ris-switcher-plugin:hover,
#ris-switcher-core:hover {
    background-color: #005177;
}

/* Modal styles */
#ris-switcher-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black with transparency */
}

/* Modal content */
.risvs-modal-content {
    background-color: #fff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Set a max width for larger screens */
}

/* Close button styles */
.risvs-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.risvs-modal-close:hover,
.risvs-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.risvs-modal-close.inactive {
    color: #ddd; /* Grey color for inactive */
    pointer-events: none; /* Prevent clicks */
}

/* Responsive design */
@media (max-width: 768px) {
    #ris-switcher-form,
    #core-ris-switcher-form
     {
        padding: 10px;
    }

    .risvs-wrap {
        padding: 15px;
    }

    #ris-switcher-plugin,
    #ris-switcher-core {
        font-size: 14px;
        padding: 8px;
    }
}