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

:root {
    --primary-color: #e77279;
    --secondary-color: #e45860;
    --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;
}

/* General Wrapper */
.tpa-dashboard-wrapper {
    margin: 0 auto;
    padding: 0 20px 0 0;
    max-width: 1240px;
    box-sizing: border-box;
}

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

.tpa-dashboard-wrapper h3 {
    margin: 0 0 20px;
    padding: 0;
}

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

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

.tpa-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
}

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

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

.tpa-dashboard-btn:hover {
    background: #fff6f7;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.tpa-dashboard-btn.svg-hover:hover svg path {
    stroke: var(--primary-color);
}

/*


/* ================================================
   Header Section
================================================ */
.tpa-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-color);
    padding: 5px 20px;
    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;
}
.tpa-dashboard-social-icons a:focus{
    box-shadow:none;
}
.tpa-dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
  	.tpa-dashboard-header-left img{
	max-width: 170px;
}
.tpa-dashboard-header-left svg {
    height: 50px;
}

.tpa-dashboard-tab-title {
    display: flex;
    gap: 5px;
    font-size: 14px;
}

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


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

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

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


/* ================================================
   Welcome Section
================================================ */
.tpa-dashboard-welcome {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
	gap: 15px;
}

.tpa-dashboard-translation-providers{
    margin-top: 24px;
}

.tpa-dashboard-welcome-text {
    width: 50%;
    flex-direction: column;
}

.tpa-dashboard-welcome-text h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
	line-height: 25px;
}

.tpa-dashboard-welcome p {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin: 10px 0 20px;
}

.tpa-dashboard-welcome-video {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tpa-dashboard-welcome-video .play-icon {
    width: 54px;
    height: 54px;
    position: absolute;
    left: calc(50% - 27px);
    top: calc(50% - 27px);
    animation: play-icon 1s ease-in-out infinite;
}

.tpa-dashboard-welcome-video img.translatepress-addon-video {
    width: 100%;
    height: auto;
}

a.tpa-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.tpa-dashboard-docs:hover {
    color: var(--primary-color);
}


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

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

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

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

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

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

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

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

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

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

.tpa-provider-toggle:disabled + .tpa-switch-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

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

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

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

.tpa-pro-provider:hover::after {
    content: "Pro";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e45860; /* Match secondary 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;
}

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

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

/* ================================================
   Sidebar
================================================ */
.tpa-dashboard-sidebar {
    width: 548px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    flex: 1;
}

/* Translation Status */
.tpa-dashboard-sidebar .tpa-dashboard-status {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-direction: column;
}

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

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

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

ul.tpa-dashboard-sts-btm li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
}

ul.tpa-dashboard-sts-btm li span:first-child {
    font-weight: 600;
}


/* Full Website Translate */
.tpa-dashboard-translate-full {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-direction: column;
}

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

.tpa-dashboard-addon.first {
    border-top: 1px solid #c3c4c7;
    padding-top: 15px;
}

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

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

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

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

/* ================================================
   Rate Us Section
================================================ */
.tpa-dashboard-rate-us {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.tpa-dashboard-rate-us h3{
    line-height: 25px;
}

.tpa-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
================================================ */
.tpa-dashboard-wrapper .tab-content{
    display: flex;
    gap: 25px;
}

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

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

:where(.tpa-dashboard-free-vs-pro,.tpa-dashboard-ai-translations ,.tpa-dashboard-license, .tpa-dashboard-settings) .tpa-dashboard-status span{
    font-size: 13px;
    font-weight: 600;
}

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

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

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

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

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

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

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

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

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

/* ================================================
   AI Translations
================================================ */
.tpa-dashboard-ai-translations {
    width: auto;
    flex: 2;
    margin-top: 25px;
}

.tpa-dashboard-ai-translations-container{
    background: white;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tpa-dashboard-ai-translations .description {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.tpa-dashboard-ai-translations .tpa-dashboard-translations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tpa-dashboard-ai-translations .tpa-dashboard-translation-card {
    margin-top: 35px;
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 13px 15px 15px 15px;
    text-align: start;
}

.tpa-dashboard-ai-translations .tpa-dashboard-translation-card h3{
    margin-top: 12px;
	font-size: 1.0rem;
    margin-bottom: 10px;
}
.tpa-dashboard-ai-translations .tpa-dashboard-translation-card p {
    padding-right: 4px;
}

.tpa-dashboard-ai-translations .tpa-dashboard-translation-card .logo{
	background-color: white;
    left: 20px;
    position: absolute;
    top: -12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    width: 95px;
    padding: 4px 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpa-dashboard-ai-translations .tpa-dashboard-translation-card .logo img{
    width: 85%;
    height: 100%;
}



.tpa-dashboard-ai-translations .tpa-dashboard-translation-card .play-btn-container img {
 width: 100%;
 height: 100%;
}
.tpa-dashboard-ai-translations .tpa-dashboard-translation-card .play-btn-container a:focus {
    box-shadow: none;
   }


.tpa-dashboard-ai-translations .tpa-dashboard-play-btn {
    background: #00cc66;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* ================================================
   Chrome AI Configuration (Settings)
================================================ */
.tpa-dashboard-chrome-ai-settings{
    margin-bottom:28px;
}

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

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

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

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

/* Chrome Local AI Notice */
#tpa-chrome-local-ai-notice {
    display: none;
    background: var(--tpa-ald-bg, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 12px;
}

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

.tpa-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 */
#tpa-chrome-test-translation {
    margin-top: 20px;
}

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

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

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

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

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

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

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

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

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

.tpa-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 */
.tpa-chrome-test-translation-result.tpa-success {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
}

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

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

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

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

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

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

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

.tpa-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 */
.tpa-chrome-unsupported-heading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(159 18 57);
}

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

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

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

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

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

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

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

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

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

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

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

.tpa-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 */
.tpa-chrome-language-pack-box,
.tpa-chrome-unsupported-box {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

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

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

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

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

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

.tpa-dashboard-upgrade-box {
    background-color: #fff6f7;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid var(--primary-color);
}

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

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

.tpa-dashboard-upgrade-box em {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
}
.tpa-dashboard-ai-translations .tpa-dashboard-ai-translations-container .header h1 {
    line-height: 25px;
}

/* ================================================
   Info
================================================ */
.tpa-dashboard-info {
    margin-top: 70px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.tpa-dashboard-info .logo {
    width: 150px;
    height: 16px;
    margin-bottom: 10px;
}

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

.tpa-dashboard-info-links a {
    color: #0073aa;
    text-decoration: none;
}

.tpa-dashboard-social-icons a:focus{
     text-decoration: underline;
}

.tpa-dashboard-social-icons img{
    margin-top: 10px;
}
.tpa-dashboard-social-icons svg {
    width: 32px;  
    height: 32px; 
}
@media (max-width: 488px) and  (min-width:100px){
	.tpa-dashboard-ai-translations .tpa-dashboard-ai-translations-container .header,
	.tpa-dashboard-free-vs-pro-container .header,
	.tpa-dashboard-license-container .header{
    flex-direction: column;
    align-items: start;
	padding-bottom: 10px;
}
	.tpa-dashboard-ai-translations .tpa-dashboard-translations {
    flex-direction: column;
}
}
@media (max-width: 767px) {

	.tpa-dashboard-wrapper .tab-content{
    flex-direction: column;
	gap: 0px;
}
	.tpa-dashboard-sidebar {
    width: auto;
}
	.tpa-dashboard-header {
    padding: 0px 11px 11px 20px;
    height: 145px;
	flex-direction: column;
    gap: 0px;
	top: 47px;
}

:is(.toplevel_page_loco-addon, .settings_page_translatepress-tpap-dashboard) #wpbody #wpbody-content {
    margin-top: 150px !important;
}

	.tpa-dashboard-welcome {
    flex-direction: column;
}
.tpa-dashboard-welcome-text {
    width: calc(100% - 0px);
}
.tpa-dashboard-welcome-video {
    width: 100%;
}
	.tpa-dashboard-wrapper{
	padding:60px 12px 0px 0px;
	}
	.tpa-dashboard-header-right {
    gap: 6px;
}
}
@media (max-width: 766px) and  (min-width:601px){
	.tpa-dashboard-header {
	top: 0px;
}
}
	
@media (max-width: 767px) and  (min-width:375px){
	.tpa-dashboard-header {
    height: 110px;
    }

    :is(.toplevel_page_loco-addon, .settings_page_translatepress-tpap-dashboard) #wpbody #wpbody-content {
        margin-top: 115px !important;
    }
}
	
	
@media (max-width: 1024px) {
.tpa-dashboard-header-left svg {
    max-width: 120px;
}
	.tpa-dashboard-header {
	gap: 15px;
}

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

/* ================================================
   Feedback Container
================================================ */

.tpa-dashboard-feedback-container .feedback-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tpa-dashboard-feedback-container input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 0;
}

.tpa-dashboard-feedback-container p {
    margin: 0;
}

.tpa-dashboard-feedback-container .tpa-see-terms {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.tpa-dashboard-feedback-container .tpa-see-terms:hover {
    text-decoration: underline;
}

.tpa-dashboard-feedback-container #termsBox {
    margin-top: 10px;
    padding-left: 20px;
    font-size: 12px;
    color: var(--text-color-light);
}

.tpa-dashboard-feedback-container #termsBox ul {
    margin: 5px 0;
    padding-left: 20px;
}

.tpa-dashboard-feedback-container #termsBox li {
    margin-bottom: 5px;
}

.tpa-dashboard-feedback-container .tpa-dashboard-save-settings {
    margin-top: 20px;
    padding-top: 20px;
}

.tpa-dashboard-feedback-container .save-settings-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tpa-dashboard-feedback-container .save-settings-btn:hover {
    background: var(--secondary-color);
}

.tpa-dashboard-feedback-container .save-settings-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 114, 121, 0.2);
}

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

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

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

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

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

/* Tooltip text */
.tapa-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 */
.tapa-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 */
.tapa-tooltip.tapa-tooltip-active {
    visibility: visible;
    opacity: 1;
}
