body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #e3f0ff 0%, #f9fcff 100%);
    min-height: 100vh;
}

a{
    text-decoration: none;
    color: #1976D2;
}

.container {
    max-width: 100%;
    margin: 40px auto;
    background: #fff;
    padding: 36px 28px 28px 28px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.08), 0 1.5px 6px rgba(0,0,0,0.04);
}
nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 28px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
    z-index: 19;
    padding: 70px 0 18px 0;
    min-height: 100vh;
    transition: all 0.2s;
}
.nav-wrapper.open nav {
    display: flex;
}
nav button {
    background: #e3f0ff;
    color: #1976d2;
    border: none;
    border-radius: 22px;
    padding: 10px 28px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
nav button:hover, nav button:focus {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}

/* Premium Feature Styling */
nav button.premium-feature {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    border: 2px solid #ff9800;
    position: relative;
}

nav button.premium-feature:hover {
    background: linear-gradient(135deg, #f57c00 0%, #d84315 100%);
    border: 2px solid #f57c00;
    color: #fff;
}

nav button.premium-feature::before {
    content: '🔒';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.8;
}

nav button.premium-feature.unlocked {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border: 2px solid #4caf50;
}

nav button.premium-feature.unlocked::before {
    content: '🔓';
    opacity: 1;
}

nav button.premium-feature.unlocked:hover {
    background: linear-gradient(135deg, #388e3c 0%, #1b5e20 100%);
    border: 2px solid #388e3c;
}
h1 {
    text-align: center;
    color: #1976d2;
    font-size: 2.1rem;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
form {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    background: #f5faff;
    padding: 14px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
}
input[type="url"], input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafdff;
    transition: border 0.2s;
}
input[type="url"]:focus, input[type="text"]:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
button[type="submit"] {
    padding: 12px 22px;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(25,118,210,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
button[type="submit"]:hover {
    background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
    box-shadow: 0 2px 8px rgba(25,118,210,0.12);
}
#results, #maps-results {
    margin-top: 5px;
}
#results h2, #maps-results h2 {
    margin-top: 18px;
    color: #1976d2;
    font-size: 1.3rem;
    letter-spacing: 0.2px;
}
#loading, #maps-loading {
    text-align: center;
    color: #1976d2;
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Elegant Table Styles for AI Results */
.ai-result {
    margin-top: 18px;
    overflow-x: auto;
    background: #f7faff;
    border-radius: 10px;
    padding: 18px 10px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    min-height: 0;
    padding-bottom: 8px;
}
.ai-result table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}
.ai-result th, .ai-result td {
    border: 1px solid #e3eaf7;
    padding: 11px 13px;
    text-align: left;
    font-size: 15.5px;
    transition: background 0.2s;
}
.ai-result th {
    background: #e3f0ff;
    color: #1976d2;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}
.ai-result tr:nth-child(even) {
    background: #f6fafd;
}
.ai-result tr:hover {
    background: #eaf4ff;
}
.ai-result table tbody:empty::after {
    content: 'Tidak ada data.';
    display: block;
    text-align: center;
    color: #888;
    padding: 18px 0;
}
.ai-result table tr:last-child td {
    border-bottom: 1.5px solid #e3eaf7;
}

/* Responsive form and container */
@media (max-width: 700px) {
    .container {
        max-width: 99vw;
        padding: 10px 1vw;
    }
    form {
        flex-direction: column;
        gap: 10px;
        padding: 10px 4px;
    }
    input[type="url"], input[type="text"] {
        width: 100%;
        min-width: 0;
        font-size: 0.98rem;
    }
    .ai-result table {
        min-width: 400px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 4px 0.5vw;
    }
    .ai-result {
        padding: 6px 2px;
    }
    .ai-result table {
        min-width: 320px;
        font-size: 13px;
    }
    th, td {
        padding: 7px 4px;
    }
}
#maps-results:empty, #results:empty {
    min-height: 0;
    margin: 0;
    padding: 0;
}

/* --- Keyword Research Result Grid --- */
.kr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 18px;
}
@media (max-width: 700px) {
    .kr-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.kr-section {
    background: #f7faff;
    border-radius: 10px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    padding: 18px 16px 14px 16px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.kr-section h3 {
    color: #1976d2;
    font-size: 1.08rem;
    margin: 0 0 10px 0;
    letter-spacing: 0.2px;
    font-weight: 600;
}
.kr-section ul, .kr-section ol {
    margin: 0 0 0 18px;
    padding: 0;
}
.kr-section li {
    margin-bottom: 4px;
    font-size: 0.98rem;
}
.kr-section .kr-volume {
    font-size: 1.1rem;
    color: #1565c0;
    font-weight: bold;
    margin-top: 2px;
}

/* --- History Section --- */
.history-section {
    margin-top: 22px;
    background: #f7faff;
    border-radius: 10px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    padding: 14px 12px 10px 12px;
    min-height: 40px;
}
.history-section h4 {
    color: #1976d2;
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}
.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.history-list li {
    margin-bottom: 7px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.04);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98rem;
}
.history-list button {
    background: #e3f0ff;
    color: #1976d2;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s, color 0.2s;
}
.history-list button:hover {
    background: #1976d2;
    color: #fff;
}
button[type="button"]#seo-export,
button[type="button"]#keyword-export,
button[type="button"]#plagiarism-export {
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(25,118,210,0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
    padding: 10px 22px;
    display:none;
}
button[type="button"]#seo-export:hover,
button[type="button"]#keyword-export:hover,
button[type="button"]#plagiarism-export:hover {
    background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
    box-shadow: 0 2px 8px rgba(25,118,210,0.12);
}
.history-empty {
    color: #888;
    text-align: center;
    padding: 18px 0 8px 0;
    font-size: 1.01rem;
}
.history-clear {
    background: #fff;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.history-clear:hover {
    background: #d32f2f;
    color: #fff;
    border: 1px solid #d32f2f;
}
.history-list small {
    color: #888;
    font-size: 0.93rem;
    font-style: italic;
} 

/* Responsive navigation and layout improvements */
@media (max-width: 700px), (min-width: 701px) {
    nav {
        gap: 10px;
    }
    nav button {
        font-size: 1.05rem;
        padding: 13px 0;
        border-radius: 16px;
    }
    .container {
        margin: 10px auto;
        border-radius: 10px;
    }
    h1 {
        font-size: 1.4rem;
    }
    #nav-toggle {
        display: block !important;
    }
    .nav-wrapper nav {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
        z-index: 19;
        flex-direction: column;
        align-items: stretch;
        padding: 70px 0 18px 0;
        min-height: 100vh;
        transition: all 0.2s;
    }
    .nav-wrapper.open nav {
        display: flex;
    }
    .nav-wrapper::before {
        content: '';
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(25, 118, 210, 0.10);
        z-index: 18;
    }
    .nav-wrapper.open::before {
        display: block;
    }
    .container {
        position: relative;
    }
}
@media (max-width: 480px) {
    nav {
        gap: 7px;
    }
    nav button {
        font-size: 0.98rem;
        padding: 11px 0;
        border-radius: 12px;
    }
    .container {
        padding: 2px 0.5vw;
        border-radius: 7px;
    }
    h1 {
        font-size: 1.1rem;
    }
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
} 
.main-footer {
    width: 100%;
    text-align: center;
    padding: 22px 8px 18px 8px;
    background: linear-gradient(90deg, #e3f0ff 60%, #f9fcff 100%);
    color: #1976d2;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-top: 1.5px solid #e3eaf7;
    margin-top: 32px;
    box-shadow: 0 -2px 12px rgba(25,118,210,0.04);
}
@media (max-width: 700px) {
    .main-footer {
        font-size: 0.98rem;
        padding: 16px 4px 12px 4px;
        margin-top: 18px;
    }
}
@media (max-width: 480px) {
    .main-footer {
        font-size: 0.93rem;
        padding: 12px 2px 8px 2px;
        margin-top: 10px;
    }
} 
/* Riset Ide Styling */
#page-idea form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #f5faff;
    padding: 18px 14px 14px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
#page-idea input[type="text"],
#page-idea select,
#page-idea textarea {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    background: #fafdff;
    transition: border 0.2s;
    margin-bottom: 0;
}
#page-idea select:focus,
#page-idea input[type="text"]:focus,
#page-idea textarea:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
#page-idea button[type="submit"] {
    margin-top: 6px;
    margin-bottom: 0;
}
#idea-loading {
    text-align: center;
    color: #1976d2;
    font-weight: bold;
    margin-top: 18px;
    font-size: 1.08rem;
}
#idea-results {
    margin-top: 10px;
    margin-bottom: 0;
    min-height: 0;
}
#idea-results .ai-result {
    background: #f7faff;
    border-radius: 10px;
    padding: 18px 14px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    font-size: 1.04rem;
    color: #222;
    margin-bottom: 0;
}
#idea-copy, #idea-export {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
}
#idea-history {
    margin-top: 22px;
}
@media (max-width: 700px) {
    #page-idea form {
        padding: 10px 4px;
        max-width: 99vw;
    }
    #idea-results .ai-result {
        padding: 10px 4px;
        font-size: 0.98rem;
    }
}
@media (max-width: 480px) {
    #page-idea form {
        padding: 6px 2px;
    }
    #idea-results .ai-result {
        padding: 6px 2px;
        font-size: 0.93rem;
    }
} 
/* --- Copy Button Style --- */
button[type="button"]#seo-copy,
button[type="button"]#keyword-copy,
button[type="button"]#rewrite-copy,
button[type="button"]#idea-copy,
button[type="button"]#write-copy,
button[type="button"]#write2-copy,
button[type="button"]#write2-realistic-copy,
button[type="button"]#prompter-copy,
button[type="button"]#backlink-copy,
button[type="button"]#custom-prompt-copy {
    background: linear-gradient(90deg, #42a5f5 60%, #1976d2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(25,118,210,0.08);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    padding: 10px 22px 10px 44px;
    position: relative;
    margin-bottom: 8px;
    margin-top: 10px;
    display: inline-block;
}
button[type="button"]#seo-copy::before,
button[type="button"]#keyword-copy::before,
button[type="button"]#rewrite-copy::before,
button[type="button"]#idea-copy::before,
button[type="button"]#write-copy::before,
button[type="button"]#write2-copy::before,
button[type="button"]#write2-realistic-copy::before,
button[type="button"]#prompter-copy::before,
button[type="button"]#backlink-copy::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>') no-repeat center center;
    background-size: 18px 18px;
    opacity: 0.85;
}
button[type="button"]#seo-copy:hover,
button[type="button"]#keyword-copy:hover,
button[type="button"]#rewrite-copy:hover,
button[type="button"]#idea-copy:hover,
button[type="button"]#write-copy:hover,
button[type="button"]#prompter-copy:hover,
button[type="button"]#backlink-copy:hover {
    background: linear-gradient(90deg, #1976d2 60%, #1565c0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,0.12);
}
@media (max-width: 700px) {
    button[type="button"]#seo-copy,
    button[type="button"]#keyword-copy,
    button[type="button"]#rewrite-copy,
    button[type="button"]#idea-copy,
    button[type="button"]#write-copy,
    button[type="button"]#prompter-copy,
    button[type="button"]#backlink-copy {
        font-size: 0.97rem;
        padding: 9px 12px 9px 38px;
    }
    button[type="button"]#seo-copy::before,
    button[type="button"]#keyword-copy::before,
    button[type="button"]#rewrite-copy::before,
    button[type="button"]#idea-copy::before,
    button[type="button"]#write-copy::before,
    button[type="button"]#prompter-copy::before,
    button[type="button"]#backlink-copy::before {
        left: 10px;
        width: 15px;
        height: 15px;
        background-size: 15px 15px;
    }
}
/* --- General Section Spacing and Form Consistency --- */
#results, #keyword-results, #rewrite-results, #idea-results {
    margin-top: 12px;
    margin-bottom: 0;
    min-height: 0;
}
#results .ai-result, #keyword-results .ai-result, #rewrite-results .ai-result, #idea-results .ai-result {
    background: #f7faff;
    border-radius: 10px;
    padding: 18px 14px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    font-size: 1.04rem;
    color: #222;
    margin-bottom: 0;
}
@media (max-width: 700px) {
    #results .ai-result, #keyword-results .ai-result, #rewrite-results .ai-result, #idea-results .ai-result {
        padding: 10px 4px;
        font-size: 0.98rem;
    }
}
@media (max-width: 480px) {
    #results .ai-result, #keyword-results .ai-result, #rewrite-results .ai-result, #idea-results .ai-result {
        padding: 6px 2px;
        font-size: 0.93rem;
    }
}
form {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    background: #f5faff;
    padding: 14px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
}
@media (max-width: 700px) {
    form {
        flex-direction: column;
        gap: 10px;
        padding: 10px 4px;
    }
}
@media (max-width: 480px) {
    form {
        padding: 6px 2px;
    }
} 
/* Menulis Konten Styling */
#page-write form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #f5faff;
    padding: 18px 14px 14px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
#page-write input[type="text"],
#page-write select,
#page-write textarea {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    background: #fafdff;
    transition: border 0.2s;
    margin-bottom: 0;
}
#page-write select:focus,
#page-write input[type="text"]:focus,
#page-write textarea:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
#page-write button[type="submit"] {
    margin-top: 6px;
    margin-bottom: 0;
}
#write-loading {
    text-align: center;
    color: #1976d2;
    font-weight: bold;
    margin-top: 18px;
    font-size: 1.08rem;
}
#write-results {
    margin-top: 10px;
    margin-bottom: 0;
    min-height: 0;
}
#write-results .ai-result {
    background: #f7faff;
    border-radius: 10px;
    padding: 18px 14px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    font-size: 1.04rem;
    color: #222;
    margin-bottom: 0;
}
#write-export {
    margin-top: 14px !important;
    margin-bottom: 8px !important;
    display: inline-block;
}
@media (max-width: 700px) {
    #write-copy, #write-export {
        margin-top: 10px !important;
        margin-bottom: 6px !important;
        margin-right: 6px;
    }
}
@media (max-width: 480px) {
    #write-copy, #write-export {
        margin-top: 8px !important;
        margin-bottom: 4px !important;
        margin-right: 4px;
    }
}
#write-history {
    margin-top: 22px;
}
@media (max-width: 700px) {
    #page-write form {
        padding: 10px 4px;
        max-width: 99vw;
    }
    #write-results .ai-result {
        padding: 10px 4px;
        font-size: 0.98rem;
    }
}
@media (max-width: 480px) {
    #page-write form {
        padding: 6px 2px;
    }
    #write-results .ai-result {
        padding: 6px 2px;
        font-size: 0.93rem;
    }
} 
/* Preload Spinner */
/* Hapus seluruh blok .preload-spinner, .preload-spinner div, dan @keyframes preload-anim yang error */
/* About Page Styling */
#page-about {
    display: block;
    max-width: 520px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.08), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 36px 28px 28px 28px;
    text-align: center;
}
#page-about h1 {
    color: #1976d2;
    font-size: 2rem;
    margin-bottom: 18px;
}
.about-content {
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 0;
}
.about-content ul {
    text-align: left;
    margin: 18px auto 18px auto;
    display: inline-block;
    padding-left: 22px;
}
.about-content li {
    margin-bottom: 7px;
    font-size: 1.01rem;
}
.about-content a {
    color: #1976d2;
    text-decoration: underline;
}
@media (max-width: 700px) {
    #page-about {
        padding: 16px 4vw 16px 4vw;
        margin: 18px auto 0 auto;
        border-radius: 10px;
    }
    #page-about h1 {
        font-size: 1.3rem;
    }
    .about-content {
        font-size: 0.98rem;
    }
}
@media (max-width: 480px) {
    #page-about {
        padding: 8px 2vw 8px 2vw;
        margin: 8px auto 0 auto;
        border-radius: 7px;
    }
    #page-about h1 {
        font-size: 1.1rem;
    }
    .about-content {
        font-size: 0.93rem;
    }
} 
/* Prompter Maker Styling */
#page-prompter form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #f5faff;
    padding: 18px 14px 14px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
#page-prompter input[type="text"],
#page-prompter input[type="number"],
#page-prompter select {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    background: #fafdff;
    transition: border 0.2s;
    margin-bottom: 0;
}
#page-prompter select:focus,
#page-prompter input[type="text"]:focus,
#page-prompter input[type="number"]:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
#page-prompter button[type="submit"] {
    margin-top: 6px;
    margin-bottom: 0;
}
#prompter-loading {
    text-align: center;
    color: #1976d2;
    font-weight: bold;
    margin-top: 18px;
    font-size: 1.08rem;
}
#prompter-results {
    margin-top: 10px;
    margin-bottom: 0;
    min-height: 0;
}
#prompter-results .ai-result {
    background: #f7faff;
    border-radius: 10px;
    padding: 18px 14px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    font-size: 1.04rem;
    color: #222;
    margin-bottom: 0;
}
#prompter-copy, #prompter-export {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
}
#prompter-history {
    margin-top: 22px;
}
@media (max-width: 700px) {
    #page-prompter form {
        padding: 10px 4px;
        max-width: 99vw;
    }
    #prompter-results .ai-result {
        padding: 10px 4px;
        font-size: 0.98rem;
    }
}
@media (max-width: 480px) {
    #page-prompter form {
        padding: 6px 2px;
    }
    #prompter-results .ai-result {
        padding: 6px 2px;
        font-size: 0.93rem;
    }
} 
/* Backlink Finder Styling */
#page-backlink form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: #f5faff;
    padding: 18px 14px 14px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(25,118,210,0.03);
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
#page-backlink input[type="text"],
#page-backlink select {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    background: #fafdff;
    transition: border 0.2s;
    margin-bottom: 0;
}
#page-backlink select:focus,
#page-backlink input[type="text"]:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
#page-backlink button[type="submit"] {
    margin-top: 6px;
    margin-bottom: 0;
}
#backlink-loading {
    text-align: center;
    color: #1976d2;
    font-weight: bold;
    margin-top: 18px;
    font-size: 1.08rem;
}
#backlink-results {
    margin-top: 10px;
    margin-bottom: 0;
    min-height: 0;
}
#backlink-results .ai-result {
    background: #f7faff;
    border-radius: 10px;
    padding: 18px 14px;
    box-shadow: 0 1.5px 8px rgba(25,118,210,0.04);
    font-size: 1.04rem;
    color: #222;
    margin-bottom: 0;
}
#backlink-copy, #backlink-export {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
}
#backlink-history {
    margin-top: 22px;
}
@media (max-width: 700px) {
    #page-backlink form {
        padding: 10px 4px;
        max-width: 99vw;
    }
    #backlink-results .ai-result {
        padding: 10px 4px;
        font-size: 0.98rem;
    }
}
@media (max-width: 480px) {
    #page-backlink form {
        padding: 6px 2px;
    }
    #backlink-results .ai-result {
        padding: 6px 2px;
        font-size: 0.93rem;
    }
} 
.nav-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-wrapper.fading-out {
    opacity: 0;
    visibility: hidden;
}
.nav-wrapper nav {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.nav-wrapper.fading-out nav {
    opacity: 0;
} 
.rightclick-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(25, 118, 210, 0.97);
    color: #fff;
    padding: 18px 32px;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(25,118,210,0.13);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.rightclick-toast.show {
    opacity: 1;
} 
.custom-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #e3f0ff 60%, #fff 100%);
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25,118,210,0.13);
  padding: 28px 38px 24px 38px;
  font-size: 1.18rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.custom-toast.show {
  opacity: 1;
  pointer-events: auto;
}
.custom-toast .toast-icon {
  font-size: 2.1em;
  margin-right: 8px;
  color: #42a5f5;
}
#page-plagiarism select {
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafdff;
    transition: border 0.2s;
    margin-bottom: 0;
}
#page-plagiarism select:focus {
    border: 1.5px solid #1976d2;
    outline: none;
} 
.rewrite-options-row {
    display: flex;
    gap: 12px;
    margin: 12px 0 0 0;
}
.rewrite-options-row select {
    flex: 1;
    min-width: 120px;
    padding: 12px 14px;
    border: 1.5px solid #b6d0f7;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafdff;
    transition: border 0.2s;
}
.rewrite-options-row select:focus {
    border: 1.5px solid #1976d2;
    outline: none;
}
@media (max-width: 700px) {
    .rewrite-options-row {
        flex-direction: column;
        gap: 10px;
    }
    .rewrite-options-row select {
        width: 100%;
        min-width: 0;
        font-size: 0.98rem;
    }
} 
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  background: #e3f0ff;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1976d2 60%, #42a5f5 100%);
  border-radius: 8px;
  border: 2px solid #e3f0ff;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1565c0 60%, #1976d2 100%);
}
::-webkit-scrollbar-corner {
  background: #e3f0ff;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #1976d2 #e3f0ff;
} 
/* Custom Context Menu */
.custom-context-menu {
  position: fixed;
  background: #fff;
  border: 1.5px solid #b6d0f7;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(25,118,210,0.13);
  padding: 8px 0;
  z-index: 10000;
  display: none;
  min-width: 160px;
}
.custom-context-menu.show {
  display: block;
}
.custom-context-menu .menu-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 1rem;
  color: #1976d2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.custom-context-menu .menu-item:hover {
  background: #e3f0ff;
}
.custom-context-menu .menu-item:first-child {
  border-radius: 12px 12px 0 0;
}
.custom-context-menu .menu-item:last-child {
  border-radius: 0 0 12px 12px;
}
.custom-context-menu .menu-item .icon {
  font-size: 1.2em;
} 



#google_translate_element {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-size: 14px;
}
.goog-te-gadget img {
  display: none; /* Hide Google branding flag icon */
}
  