@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --primary: #1063ef;
}

.e-notice--extended,
.e-notice--dismissible,
.e-notice,
.notice {
    display: none !important;
}

.custom-card {
    background-color: white;
    padding: 12px;
    border-radius: 6px;

    margin-inline-end: 21px;
    margin-block-start: 21px;
}

.pgy-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-tab-disabled {
    color: #a0a5aa;
    cursor: not-allowed;
    text-decoration: none;

    &:hover {
        color: #a0a5aa;
    }
}



@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.shiny {
    display: inline-block;
    margin-inline-start: 9px;
    position: relative;
    background: #5792ff;
    padding-inline: 6px;
    color: white;
    border-radius: 6px;
    overflow: hidden;
    /* ensures the shine doesn't spill out */
}

.shiny::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: shine 2s infinite;
}




/* Main Container */
#postology-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    overflow: hidden;
    margin-block-end: 30px;
    font-family: "Plus Jakarta Sans", serif;

    /* Header Text */
    .postology-header {
        flex-grow: 1;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    p {
        margin-block: auto;
        font-weight: 600;
    }

    /* Generate Summary Button */
    #generate-summary {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 6px 20px;
        transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
        white-space: nowrap;

        &:disabled {
            /* background-color: #9c9c9c; */
            cursor: not-allowed;
            transform: translateY(0px);
        }
        &:hover {
            transform: translateY(-2px);
        }
    }
}

/* Summary Container */
#summary-content {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 16px 12px 16px;
    font-family: "Plus Jakarta Sans", serif;
    margin-block-end: 30px;

    /* Summary Title */
    #summary-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;

        p {
            margin: 0;
            font-size: inherit;
        }
    }

    #summary-content-placeholder {
        background-color: #a3a3a3;
        border-radius: 9px;
        padding: 18px;

        ul {
            list-style-type: disc;
            padding-left: 20px;
            margin: 0;
            
            li {
                margin-bottom: 12px;
            }
        }
    }

    /* "Powered by Postology" Text */
    .postology-powered-by {
        font-size: 12px;
        color: #888888;
        text-align: right;
        margin-top: 12px;
    }
}

/* Icon */
.icon {
    margin-right: 8px !important;
    width: 30px !important;
}


/* Mobile Styling */
@media (max-width: 768px) {
    #postology-box {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .postology-header {
        margin-bottom: 10px !important;
    }

    #generate-summary {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* Animation Keyframes */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/*  -------------------- dashboard ------------------------ */

/* Grid layout container for the overall dashboard */
.postology-dashboard {
    font-size: 18px;

    /* Existing .dashboard-container-divs styles */
    .dashboard-container-divs {
        background-color: white;
        padding: 18px;
        padding-block: 24px;
        border-radius: 6px;

        a {
            text-decoration: none;
        }

        .heading-section {
            margin-bottom: 30px;
        }

        /* Section styling inside each card */
        section {
            display: flex;
            gap: 9px;
            align-items: flex-end;
            line-height: 1;

            svg {
                inline-size: 19px;
            }

            .section-headings {
                color: #1063ef;
                font-size: 21px;
                margin: 0;
            }
        }

        .status-table {

            margin-block-end: 0;
            border-collapse: collapse;
            /* Removes double borders between cells */
            width: 100%;

            tr {
                border-bottom: 1px solid #e9e8e8;
            }

            td {
                padding: 10px 0;
                /* Adjust spacing to your preference */
            }

            .right {
                text-align: right;
            }
        }


        ul {
            list-style-type: none;

            margin-block-end: 0;

            li {
                margin-block-start: 15px;
            }
        }

        form {

            input[type="number"],
            input[type="text"] {
                padding: 6px;
                border: 1px solid #ccc;
                border-radius: 4px;
            }

            input[type="number"] {
                padding-block: 0;
            }

            label {
                font-weight: 600;
                margin-block-end: 6px;
            }

            ul li {
                display: flex;
                flex-direction: column;
                margin-block-start: 15px;
            }
        }

        button {
            margin-block-start: 15px;
            padding: 6px 15px;
            border: none;
            background-color: #1063ef;
            color: #fff;
            border-radius: 4px;
            cursor: pointer;
            transition: 0.3s ease;
            font-size: 15px;

            &:hover {
                background-color: #0c50c5;
            }
        }
    }


    /* Credits section: optional progress bar styling */
    .credits-info {


        p {
            margin: 0;
        }
    }

    /* .credits-progress-bar {
        position: relative;
        background-color: #eee;
        border-radius: 4px;
        width: 100%;
        height: 8px;
        margin-left: 10px;
    }

    .credits-progress {
        background-color: #0073aa;
        height: 8px;
        border-radius: 4px;
        width: 0%;
    } */

    .credit-buy {
        margin-block-start: 15px;

        strong {
            font-size: 15px;
        }

        .credits-buy-links {
            margin-block-start: 6px;

            a {
                inline-size: 100%;
                text-align: center;
                background-color: #1062ef17;
                border-radius: 9px;
                padding: 12px;
            }
        }


    }

    .help-links-list {
        li {
            margin-block: 30px;
        }

        a {
            display: flex;
            align-items: center;
            gap: 9px;
            /* font-weight: 600; */

            color: black;
            text-decoration: none;

            svg {
                inline-size: 21px;
                background: #1062ef17;
                padding: 9px;
                border-radius: 6px;
            }

            section {
                flex-direction: column;
                align-items: flex-start;
                gap: 0;

                p {
                    margin: 0;
                }
            }
        }
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 24px;
    margin-right: 6px;

    input {
        opacity: 0;
        width: 0;
        height: 0;

        &:checked+.slider {
            background-color: #2196F3;

            &:before {
                transform: translateX(27px);
            }
        }
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: background-color 0.4s;
        border-radius: 34px;

        &:before {
            position: absolute;
            content: "";
            aspect-ratio: 1 / 1;
            height: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: transform 0.4s;
            border-radius: 50%;
        }
    }
}



/* Upgrade section */
.upgrade-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;

    padding: 12px;
    padding-block: 15px;
    border-radius: 6px;

    margin-inline-end: 21px;
    margin-block-start: 21px;

    section {
        display: flex;
        flex-direction: column;

        strong {
            font-size: 18px;
        }

        p {
            margin: 0;
        }
    }

    .upgrade-button {
        padding: 9px 18px;
        background-color: #46b450;
        /* WP-style green or choose your color */
        color: #fff;

        font-size: 18px;
        border: none;
        border-radius: 3px;
        cursor: pointer;

        text-decoration: none;

        &:hover {
            background-color: #358a38;
        }
    }
}


/*  -------------------- general ------------------------ */
/* Add these rules to your plugin’s CSS file */
.general-form-section {
    display: grid;
    grid-template-columns: 30% 1fr;
    margin-block-start: 9px;
    font-size: 18px;
}

.general-form-description {
    margin: 0;
    grid-column: 1 / 3;
    font-size: 15px;
}

.general-form-input {
    inline-size: min-content;
    grid-row-start: 1;
    grid-column-start: 2;
}


/* ----------------------- license --------------------- */

.license-key-details-section {
    display: flex;

    p {
        inline-size: 100%;
    }
}

.loading-line {
    height: 10px !important;
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%) !important;
    background-size: 200% 100% !important;
    margin-bottom: 10px !important;
    border-radius: 5px !important;
    animation: shimmer 1.5s infinite linear;
}