/* styles.css */
/* style.css */
body {
    font-family: Arial, sans-serif;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #0073e6; /* Blue background color */
    color: #fff; /* White text color */
    border: 1px solid #ccc;
    margin-left: 1em;
    font-weight: bold;
    font-size: 1.5em;
}

.tab-content {
    display: none;
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Ensure it's on top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust width if necessary */
    max-width: 600px; /* Ensure it doesn't get too wide */
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5); /* Optional: add a shadow for better visibility */
    position: relative;
    z-index: 10000; /* Ensure content is above the background overlay */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

div.postbox {
    padding: 10px;
    margin-left: 1.5em;
}


/* Adjust the width of form text boxes */
form.table-form-table input[type="text"],
form.table-form-table input[type="email"],
form.table-form-table textarea {
    width: 100%;
    max-width: 500px; /* Set your desired maximum width */
}

/* Settings saved notice style */
.autocontent-banner .notice:not(.edds-admin-notice) {
    position: absolute !important;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Processing Gif position */
#processingContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}



.info-bubble {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
}

.info-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0073aa; /* Blue background */
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease; /* Smooth hover effect */
}

.info-tooltip span {
    font-weight: normal; /* Ensures text inside the span is not bold */
}

.info-icon:hover {
    background-color: #005a8c; /* Darker blue on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

.info-bubble .info-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Center the tooltip horizontally */
    top: 125%; /* Position below the bubble */
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    font-size: 12px;
    color: #333;
    display: none; /* Hidden by default */
    z-index: 1000;
}

.info-bubble:hover .info-tooltip,
.info-bubble:focus .info-tooltip {
    display: block; /* Show tooltip on hover or focus */
}

.info-tooltip a {
    color: #0073aa; /* Link color */
    text-decoration: none;
}

.info-tooltip a:hover {
    text-decoration: underline;
}

.button-secondary {
    margin-left: 20px !important;
}


.hidden {
    display: none;
}

/* Modal Overlay */
.modal-overlay {
    /*display: flex;*/
    /*justify-content: center;*/
    /*align-items: center;*/
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Modal Container */
.modal-container {
    position: fixed;
    z-index: 10000; /* Above the overlay */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

/* Upgrade Modal Content */
.modal-content-upgrade {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

/* Upgrade Links */
.modal-content-upgrade a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
}

.modal-content-upgrade a:hover {
    color: #0056b3;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        padding: 20px;
    }
}

/* Plan card style */
.ac-plans-section {
    display: flex;
    justify-content: center;         /* To center the single card */
    gap: 20px;              /* This might not have a visual effect with one card */
    flex-wrap: wrap;
    margin-top: 20px;
}

.ac-plan-card {
    position: relative;
    /*flex: 1 1 calc(33% - 20px); !* 3 cards in a row with equal spacing *!*/
    max-width: 350px;                /* Add this: Adjust width as needed */
    width: 100%;                     /* Add this: Ensures it's responsive within the max-width */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.ac-plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.ac-plan-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.ac-plan-body {
    margin-bottom: 20px;
    text-align: center;
}

.ac-plan-description {
    list-style-type: none;
}

.ac-plan-footer {
    text-align: center;
}

@media (max-width: 500px) {
    .ac-plan-card {
        /* flex: 1 1 100%; */    /* This is okay, or just rely on width: 100% and the max-width above */
        max-width: 100%;       /* Ensures it doesn't exceed modal padding on small screens */
    }
}

/* Key Activation Section */
#key_activation_section {
    display: none; /* Initially hidden */
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Label */
#key_activation_section label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
    word-wrap: break-word; /* Ensures text breaks properly */
    white-space: normal; /* Allows multi-line text */
    max-width: 100%; /* Prevents text overflow */
    line-height: 1.4; /* Increases readability */
}

/* Input and Button Wrapper */
.key-input-wrapper {
    display: flex;
    gap: 10px; /* Adds spacing between input and button */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Ensures responsiveness */
}

/* Input Field */
#premium_activation_key {
    flex: 1; /* Makes input take available space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s ease-in-out;
    min-width: 180px; /* Prevents input from shrinking too much */
}

#premium_activation_key:focus {
    border-color: #007bff;
}

/* Ensure spacing between button and input */
@media (max-width: 480px) {
    .key-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    #activate_key_button {
        width: 100%; /* Button takes full width on small screens */
    }
}


/* Button styling to ensure spinner is visible */
#activate_key_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between spinner and text */
    background-color: #007bff;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}


/* Hover effect */
#activate_key_button:hover {
    background-color: #0056b3;
}

/* Click Animation */
#activate_key_button:active {
    transform: scale(0.96);
}

/* Disabled State */
#activate_key_button:disabled {
    background-color: #cccccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Message Box */
#activation_message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}


.ribbon-wrapper {
    width: 106px;
    height: 108px;
    overflow: hidden;
    position: absolute;
    top: -6px;
    left: -6px;
}

.ribbon {
    line-height: 18px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    position: relative;
    padding: 7px 0;
    left: -33px;
    top: 26px;
    width: 150px;
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: -3px 5px 6px -5px rgba(0, 0, 0, 0.5);
    outline: 1px solid #fff;
    outline-offset: -4px;
}

.ribbon-red {
    font: bold 13px Sans-Serif;
    background: linear-gradient(
            to bottom,
            #ff5151 0%,
            #e21f23 100%
    );
}

.ribbon-blue {
    font: bold 15px Sans-Serif;
    background: linear-gradient(
            to bottom,
            #51aaff 0%,
            #1f64e2 100%
    );
}

.ribbon:before, .ribbon:after {
    content: "";
    border-top: 4px solid #9a0024;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    position: absolute;
    bottom: -4px;
}

.ribbon:before {
    left: 0;
}

.ribbon:after {
    right: 0;
}
