/*
=======================================================
Polylang Addon Dashboard - Admin Panel Styles
=======================================================
*/

:root {
    --primary-color: #30b230;
    --primary-light-color: #efffef;
    --secondary-color: #239d23;
    --background-color: #f8f9fa;
    --border-color: #ddd;
    --text-color: #222;
    --text-color-light: #666;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    --font-size-base: 16px;
    --line-height-base: 1.5;
}

.atfp-dashboard-card{
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-direction: column;
}

.atfp-dashboard-btn{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    box-shadow: inset 1px 1px 2px #00000010;
    cursor: pointer;
    line-height: 1.4em;
}

.atfp-dashboard-btn:has(img){
    line-height: 1;
}

.atfp-dashboard-btn:hover{
    background: var(--primary-light-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}

/* General Wrapper */
.atfp-dashboard-wrapper {
    margin: 0 0 0 -20px;
    padding: 0;
    width: calc(100% + 20px);
    box-sizing: border-box;
}

.atfp-dashboard-wrapper * {
    box-sizing: border-box;
    font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
}

.atfp-dashboard-wrapper h3 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 19px;
    line-height: 1.5em;
}

:is(.toplevel_page_loco-addon,.languages_page_polylang-atfp-dashboard) #wpbody #wpbody-content {
    margin-top: 80px !important;
    margin-block-start: 80px !important;
}

/* ================================================
   Buttons & Links
================================================ */
.atfp-dashboard-btns-row {
    display: flex;
    gap: 10px;
}

.atfp-dashboard-btn:focus {
   box-shadow: none;
}

.atfp-dashboard-btn.primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.atfp-dashboard-btn:focus{
    box-shadow: none;
    border-radius: 6px;
    background: var(--primary-light-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0px 3px var(--primary-light-color);
}

/* ================================================
   Header Section
================================================ */
.atfp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-color);
    padding: 5px 30px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 6px 6px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 20px);
    margin: 0 0 0 -20px;
    box-shadow: var(--shadow);
    height: 70px;
}
.atfp-dashboard-social-icons a:focus{
    box-shadow:none;
}
.atfp-dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.atfp-dashboard-logo-link:focus,
.atfp-dashboard-logo-link:hover {
    box-shadow: none;
}

.atfp-dashboard-header-left img{
    width: 42px;
    max-width: 42px;
    margin: 0;
    display: block;
}
.atfp-dashboard-header-left svg {
    height: 50px;
}

.atfp-dashboard-logo-text{
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.atfp-dashboard-tab-title {
    display: flex;
    gap: 5px;
    font-size: 14px;
    line-height: 1;
}

.atfp-dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.atfp-dashboard-wrapper .nav-tab-wrapper a:first-child{
    margin-left: 30px;
}

.atfp-dashboard-wrapper .nav-tab-wrapper a{
    padding: 10px 12px;
    border-radius: 6px 6px 0 0;
}


/* ================================================
   Dashboard Layout
================================================ */
.atfp-dashboard-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    flex: 2;
}

@media (min-width: 768px) {
    .atfp-dashboard-dashboard {
        flex-direction: row;
        gap: 40px;
    }
}

.atfp-dashboard-left-section {
    width: auto;
    flex: 2;
    margin-top: 30px;
}


/* ================================================
   Welcome Section
================================================ */
.atfp-dashboard-get-started{
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.atfp-dashboard-get-started-grid{
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 14px;
    margin-top: 20px;
    gap: 20px;
}

.atfp-dashboard-get-started-grid .atfp-dashboard-get-started-grid-content{
    width: 50%;
    padding: 0;
}

.atfp-dashboard-get-started-grid-content h2{
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 25px;
    margin-top: 0;
}

.atfp-dashboard-get-started-grid-content p{
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin: 10px 0 20px;
}

.atfp-dashboard-get-started-grid div ul{
    list-style: disc;
    padding-block: 0;
    margin-block: 0;
    padding-right: 20px;
}

.atfp-dashboard-get-started-grid div:nth-child(2){
    display: flex;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
}

.atfp-dashboard-get-started-grid iframe{
    max-width: 100%;
    width: 100%;
    aspect-ratio: 2/1;
}

.atfp-dashboard-get-started-grid:nth-child(3){
    margin-block: 24px;
}

.atfp-dashboard-translation-providers{
    margin-top: 24px;
}
a.atfp-dashboard-docs {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: underline;
}

a.atfp-dashboard-docs:hover {
    color: var(--primary-color);
}

a.atfp-dashboard-docs:focus{
    border: none;
    box-shadow: none;
    outline: none;
}

/* Provider Toggle Switch */
.atfp-provider-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

.atfp-provider-switch .atfp-provider-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.atfp-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.atfp-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.atfp-provider-toggle:checked + .atfp-switch-slider {
    background-color: var(--primary-color);
}

.atfp-provider-toggle:checked + .atfp-switch-slider:before {
    transform: translateX(20px);
}

.atfp-provider-toggle:disabled + .atfp-switch-slider {
    background-color: #e0e0e0;
    opacity: 0.6;
}

.atfp-provider-toggle:disabled:checked + .atfp-switch-slider {
    background-color: #e0e0e0;
}

.atfp-provider-toggle:focus + .atfp-switch-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

/* Pro Tag on Hover */
.atfp-pro-provider {
    position: relative;
}

.atfp-pro-provider:hover::after {
    content: "Pro";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

.atfp-pro-provider:hover::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
    z-index: 10;
    pointer-events: none;
}

.atfp-dashboard-provider-buttons {
    display: flex;
    gap: 10px;
    font-size: 11px;
}

#chrome-local-ai-error-message{
    margin-bottom: 10px;
    font-size: 12px;
    color: #dc2626;
}

/* ================================================
   Translation Providers
================================================ */
.atfp-dashboard-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.atfp-dashboard-provider-card {
    background: #fff;
    padding: 21px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.atfp-dashboard-provider-card li{
    margin: 0;
    padding-block: 13px;
    border-bottom: 1px solid #e9e9e9b0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.atfp-dashboard-provider-card li:last-child{
    border-bottom: none;
}

.atfp-dashboard-provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.atfp-dashboard-provider-header img {
    height: 25px;
}

.atfp-dashboard-badge {
    background: #131413;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 12px;
}

.atfp-dashboard-badge.free {
    background: var(--primary-color);
}

.atfp-dashboard-provider-buttons {
    display: flex;
    gap: 10px;
    font-size: 11px;
}

/* ================================================
   Sidebar
================================================ */
.atfp-dashboard-sidebar {
    width: 450px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    flex: 1;
}


.atfp-dashboard-sts-top {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    border-bottom: 1px solid #c3c4c7;
    gap: 12px;
    font-size: 15px;
}

.atfp-dashboard-sts-top span:first-child {
    font-weight: 800;
    font-size: 24px;
}

ul.atfp-dashboard-sts-btm {
    padding: 0;
    margin: 9px 0;
}

ul.atfp-dashboard-sts-btm li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding-block: 10px;
    border-bottom: 1px solid #e9e9e9b0;
}

ul.atfp-dashboard-sts-btm li span:first-child {
    font-weight: 600;
}
ul.atfp-dashboard-sts-btm li:last-child {
    margin-bottom: 0px;
    border-bottom: none;
}

.atfp-dashboard-bulk-translation-pro-suggestion{
    background: #f3fcf3;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #30b230;
}

.atfp-bulk-translation-suggestion{
    background: #f0f6fc;
    border: 1px solid #c5d9e2;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
}

.atfp-bulk-translation-suggestion p{
    margin-top: 0;
}

/* Full Website Translate */
.atfp-dashboard-translate-full .atfp-dashboard-addon{
    flex-direction: row;
}

.atfp-dashboard-translate-full .atfp-dashboard-addon {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.atfp-dashboard-addon-l {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.atfp-dashboard-addon-r img {
    width: 72px;
}

.atfp-dashboard-translate-full .installed {
    background: #cfd5d1;
    color: #7f7f7f;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.atfp-dashboard-translate-full .addon-desc {
    font-size: 12px;
    color: #838389;
    margin-bottom: 5px;
}

/* ================================================
   Need Help Section
================================================ */
.atfp-dashboard-translate-support{
    align-items: flex-start;
}

.atfp-dashboard-translate-support h3{
    margin-bottom: 0;
}
.atfp-dashboard-translate-support .atfp-dashboard-support-link {
    margin-right: auto;
}
/* ================================================
   Rate Us Section
================================================ */
.atfp-dashboard-rate-us{
    align-items: flex-start;
}

.atfp-dashboard-rate-us h3{
    margin-bottom: 0px;
}
.atfp-dashboard-rate-us .review-link {
    display: inline-block;
    margin-top: 10px;
    color: #007cba;
    font-weight: bold;
}

/* ================================================
   Animations
================================================ */
@keyframes play-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/*===============================================
    Tab Content
================================================ */
.atfp-dashboard-wrapper .tab-content{
    display: flex;
    gap: 30px !important;
    padding: 0 30px;
}

.atfp-dashboard-get-started .header,
.atfp-dashboard-free-vs-pro .header,
.atfp-dashboard-license .header ,
.atfp-dashboard-settings .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

:where(.atfp-dashboard-get-started,.atfp-dashboard-free-vs-pro ,.atfp-dashboard-license,.atfp-dashboard-settings) h1{
    margin-top: 8px;
}

:where(.atfp-dashboard-get-started,.atfp-dashboard-free-vs-pro ,.atfp-dashboard-license,.atfp-dashboard-settings) .atfp-dashboard-status {
    display: flex;
    align-items: center;
    gap: 10px;
}


:where(.atfp-dashboard-get-started,.atfp-dashboard-free-vs-pro ,.atfp-dashboard-license,.atfp-dashboard-settings) .atfp-dashboard-status span{
    font-size: 15px;
    font-weight: 600;
}

/* ================================================
   Free vs Pro
================================================ */
.atfp-dashboard-free-vs-pro {
    width: 100%;
    margin-top: 25px;
    flex: 2;
}

.atfp-dashboard-free-vs-pro-container{
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.atfp-dashboard-free-vs-pro p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.atfp-dashboard-free-vs-pro table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.atfp-dashboard-free-vs-pro th {
    background-color: #e7e7e7;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
}

.atfp-dashboard-free-vs-pro td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.atfp-dashboard-free-vs-pro .check {
    color: green;
    font-size: 16px;
}

.atfp-dashboard-free-vs-pro .cross {
    color: red;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .atfp-dashboard-free-vs-pro {
        width: 100%;
        padding: 16px;
    }
}

/* ================================================
   License
================================================ */
.atfp-dashboard-license {
    width: 100%;
    margin-top: 25px;
    flex: 2;
}

.atfp-dashboard-license-container{
    background: white;
    font-family: Arial, sans-serif;
    color: #333;
    border: 1px solid #ddd;
    padding: 24px;
    border-radius: 5px;
}

.atfp-dashboard-license h1 {
    font-weight: 600;
    color: #000;
    margin: 14px 0px 22px 0px;
    font-size: 22px;
}

.atfp-dashboard-license p {
    margin: 5px 0;
    font-size: 14px;
}

.atfp-dashboard-upgrade-box {
    background-color: #f3fcf3;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #30b230;
}

.atfp-dashboard-upgrade-box a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.atfp-dashboard-upgrade-box a:hover {
    text-decoration: underline;
}

.atfp-dashboard-upgrade-box em {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
}

/* ================================================
   Settings Section
================================================ */
.atfp-dashboard-settings {
    width: 100%;
    margin-top: 25px;
    flex: 2;
}

.atfp-dashboard-settings-container{
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.atfp-dashboard-settings h1{
    margin: 14px 0px 22px 0px;
    font-size: 22px;
	line-height: 25px;
}

.atfp-section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 10px 0;
}

.atfp-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.atfp-section-icon svg,
.atfp-section-icon img {
    display: block;
}

.atfp-section-description {
    font-size: 14px;
    color: var(--text-color-light);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Chrome Local AI Notice */

.atfp-dashboard-chrome-ai-settings{
    margin-bottom: 30px;
}

#atfp-chrome-local-ai-notice{
    display: none;
}

.atfp-dashboard-settings-card {
    background: var(--atfp-ald-bg, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 12px;
}

.atfp-chrome-local-ai-notice-content {
    color: #dc2626;
    font-size: 14px;
    line-height: 1.5;
}

.atfp-chrome-notice-heading {
    font-weight: 600;
    margin: 0 0 12px 0;
    font-size: 16px;
}

/* Test translation section (inside notice) - spacing when notice content is above */
#atfp-chrome-test-translation {
    margin-top: 20px;
}

.atfp-chrome-test-translation-heading {
    font-weight: 600;
    margin: 0 0 16px 0;
    font-size: 16px;
}

.atfp-chrome-test-translation-description {
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}

.atfp-chrome-test-translation-language-pair {
    margin-bottom: 16px;
}

.atfp-chrome-test-translation-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.atfp-chrome-test-translation-source,
.atfp-chrome-test-translation-target {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.atfp-chrome-test-translation-source {
    margin-right: 8px;
    width: 10rem;
}

.atfp-chrome-test-translation-target {
    width: 10rem;
}

.atfp-chrome-test-translation-text {
    width: 349px;
    max-width: 80%;
    margin-bottom: 16px;
}

.atfp-chrome-test-translation-btn {
    margin-bottom: 16px;
    cursor: pointer;
}

.atfp-chrome-test-translation-result {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.atfp-chrome-test-translation-error {
    display: none;
    margin-top: 16px;
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
}

/* Chrome AI notice - success result state */
.atfp-chrome-test-translation-result.atfp-success {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

#atfp-chrome-local-ai-notice.atfp-chrome-notice-combined .atfp-chrome-local-ai-notice-content {
    color: inherit;
}

#atfp-chrome-local-ai-notice .atfp-chrome-no-languages-content {
    color: rgb(159 18 57);
    font-size: 14px;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#atfp-chrome-local-ai-notice .atfp-chrome-no-languages-content svg {
    fill: rgb(159 18 57);
    vertical-align: middle;
}

/* Chrome notice message content - lists, paragraphs, links */
.atfp-chrome-notice-message ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 8px;
}

.atfp-chrome-notice-message ol {
    list-style-type: none;
}

.atfp-chrome-notice-message p {
    margin-top: 8px;
    margin-bottom: 12px;
}

.atfp-chrome-notice-message p:last-child {
    margin-bottom: 0;
}

.atfp-chrome-notice-message a {
    text-decoration: none;
    color: #2563eb;
}

/* Chrome copyable URL link */
.chrome-url-link.chrome-ai-translator-flags {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.chrome-url-link.chrome-ai-translator-flags a {
    color: #2563eb;
    text-decoration: none;
}

/* Unsupported languages notice */
.atfp-chrome-unsupported-heading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(159 18 57);
}

.atfp-chrome-unsupported-heading svg {
    fill: rgb(159 18 57);
    vertical-align: middle;
}

.atfp-chrome-unsupported-box p {
    margin-bottom: 12px;
    color: rgba(190 18 60);
}

.atfp-chrome-unsupported-box .atfp-unsupported-list {
    color: rgb(159 18 57);
}

/* Language pack notice */
.atfp-chrome-language-pack-heading {
    color: rgb(217 119 6);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.atfp-chrome-language-pack-heading svg {
    fill: rgb(217 119 6);
    vertical-align: middle;
}

.atfp-chrome-language-pack-box {
    margin-top: 12px;
}

.atfp-chrome-language-pack-box p {
    margin-bottom: 12px;
    color: rgba(71 85 105);
}

.atfp-chrome-language-pack-inner .atfp-required-lang {
    color: rgb(225 29 72);
}

.atfp-chrome-language-pack-inner strong.atfp-required-label {
    color: rgb(161 98 7);
}

/* Chrome steps list (numbered circles) */
.atfp-chrome-steps-list {
    margin: 0 0 12px 0;
    padding-left: 0;
    list-style: none;
}

.atfp-chrome-steps-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 35px;
    color: #DC2626;
}

.atfp-chrome-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgb(254 243 199);
    background-color: rgb(255, 255, 255);
    color: #111827;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
}

/* Combined notice sections */
.atfp-chrome-language-pack-box,
.atfp-chrome-unsupported-box {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.atfp-chrome-combined-section h4,
.atfp-chrome-combined-heading {
    font-weight: 600;
    margin-bottom: 12px;
}

.atfp-dashboard-settings-pro-features{
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 21px;
    margin-bottom: 20px;
}

.atfp-dashboard-api-settings-container{
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    margin-top: 25px;
}

.atfp-dashboard-api-settings{
    margin-bottom: 28px;
}
.atfp-dashboard-api-settings label,
.atfp-dashboard-translation-settings label{
    margin: 0 0 20px;
    padding: 0;
    font-size: 1.3em;
    font-weight: 600;
    display: block;
}

.atfp-dashboard-api-settings .input-group input{
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease;
}

.api-settings-description{
    color: var(--text-color-light);
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.atfp-dashboard-translation-settings{
    margin-bottom: 28px;
}

.atfp-dashboard-translation-settings :where(label[for="bulk-translate-post-status"], label[for="slug-translation-settings"]){
    margin-bottom: 15px !important;
}

.atfp-dashboard-translation-settings label[for="bulk-translate-post-status"] + .atfp-bulk-translation-post-status-options{
    margin-bottom: 25px !important;
}

.atfp-dashboard-translation-settings textarea{
    width: 100%;
    min-height: 100px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0;
    font-family: inherit;
    resize: vertical;
}

.atfp-dashboard-feedback-container {
    margin: 20px 0px 18px 0px;
}

.atfp-dashboard-feedback-row{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.atfp-dashboard-feedback-container input{
    margin-top: 3px;
}

.atfp-dashboard-feedback-container p{
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

.atfp-dashboard-ai-request-container label{
    white-space: nowrap;
    min-width: 150px;
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.3em;
    font-weight: 600;
    display: block;
}

.atfp-dashboard-ai-timeout-container p{
    margin-bottom: 0px;
}

.atfp-bulk-translation-post-status-options{
    display: flex;
    align-items: center;
    gap: 10px;
}

.atfp-bulk-translation-post-status-options input{
    margin-right: 10px;
    width: 10px;
}

.atfp-bulk-translation-post-status-options label{
    margin-right: 10px;
    margin-block: 0px;
    font-size: 13px;
}

/* ================================================
   Info
================================================ */
.atfp-dashboard-info{
    margin-top: 25px;
}

.atfp-dashboard-info-links {
    font-size: 14px;
}

.atfp-dashboard-info-links p{
    display: flex;
    align-items: center;
    gap: 10px;
}

.atfp-dashboard-info .logo {
    width: 109px;
    height: 7px;
    margin-bottom: 10px;
}

.atfp-dashboard-info .logo  a:focus{
    box-shadow: none;
}

.atfp-dashboard-info-links a {
    color: #0073aa;
    text-decoration: none;
}
@media (max-width: 488px) and  (min-width:100px){
	.atfp-dashboard-free-vs-pro-container .header,
	.atfp-dashboard-settings-container .header,
	.atfp-dashboard-license-container .header{
    flex-direction: column;
    align-items: start;
	padding-bottom: 10px;
}
}
@media (max-width: 767px) {
    .atfp-dashboard-wrapper .tab-content {
        flex-direction: column;
        gap: 0px;
    }
    .atfp-dashboard-sidebar {
        width: auto;
    }
    .atfp-dashboard-header {
        padding: 0px 11px 11px 20px;
        height: auto;
        min-height: 110px;
        flex-direction: column;
        gap: 15px;
        top: 0;
    }
    .atfp-dashboard-wrapper {
        padding: 60px 12px 0px 0px;
    }
    .atfp-dashboard-header-right {
        gap: 6px;
    }
    .atfp-dashboard-free-vs-pro-container .header,
    .atfp-dashboard-settings-container .header,
    .atfp-dashboard-license-container .header {
        flex-direction: column;
        align-items: start;
        padding-bottom: 10px;
    }
}
@media (max-width: 766px) and  (min-width:601px){
	.atfp-dashboard-header {
	top: 0px;
}
}
	
@media (max-width: 767px) and  (min-width:375px){
	.atfp-dashboard-header {
    height: 110px;
}
}
	
	
@media (max-width: 1024px) {
.atfp-dashboard-header-left svg {
    max-width: 120px;
}
	.atfp-dashboard-header {
	gap: 15px;
}

	.atfp-dashboard-header-left img{
	max-width: 125px;
}
	.atfp-dashboard-btn {
    padding: 7px 6px;
}
	.atfp-dashboard-header-right {
    gap: 13px;
}
}

/* ================================================
   Tooltip & Clipboard
================================================ */

/* Tooltip container */
.atfp-tooltip-element {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.atfp-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
}

/* Tooltip arrow */
.atfp-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show the tooltip when active */
.atfp-tooltip.atfp-tooltip-active {
    visibility: visible;
    opacity: 1;
}