.bpdm-dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 45px);
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 15px 15px 25px 0;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 6px -2px rgba(0,0,0,0.02);
}

.bpdm-sidebar {
    width: 250px;
    min-width: 250px;
    background: #ffffff;
    color: #475569;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.bpdm-logo {
    padding: 20px 18px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.bpdm-logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bpdm-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 10px;
    font-size: 19px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
}

.bpdm-logo-text h2 {
    color: #0f172a;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.bpdm-version-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
    margin-top: 3px;
    letter-spacing: 0;
}

.bpdm-nav {
    flex-grow: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.bpdm-nav-separator {
    padding: 16px 18px 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
}

.bpdm-nav-item {
    display: flex;
    align-items: center;
    margin: 2px 10px;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: none;
}

.bpdm-nav-item .dashicons {
    margin-right: 10px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    color: #64748b;
    transition: color 0.15s ease;
}

.bpdm-nav-item:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.bpdm-nav-item:hover .dashicons {
    color: #2563eb;
}

.bpdm-nav-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.bpdm-nav-item.active .dashicons {
    color: #2563eb;
}

.bpdm-content-area {
    flex-grow: 1;
    min-width: 0;
    padding: 28px 36px;
    background: #f8fafc;
    overflow-x: auto;
    box-sizing: border-box;
}

.bpdm-section, 
.tab-content,
.bpdm-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    padding: 26px 30px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hide tabs by default */
.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Headers */
h1, h2, h3, h4 {
    color: #0f172a;
    letter-spacing: -0.01em;
}

.bpdm-section h2, .bpdm-card h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
}

.form-table {
    width: 100%;
    max-width: 100%;
}

.form-table th { 
    padding: 16px 14px 16px 0; 
    width: 220px;
    font-weight: 600;
    color: #334155;
    vertical-align: top;
}

.form-table td { 
    padding: 14px 12px; 
    vertical-align: top;
}

input[type="text"], 
input[type="url"], 
input[type="email"], 
input[type="number"], 
select, 
textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 13.5px;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus, 
input[type="url"]:focus, 
input[type="email"]:focus, 
input[type="number"]:focus, 
select:focus, 
textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

/* Buttons & Controls */
.button-primary {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.15s ease !important;
}

.button-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    transform: translateY(-1px);
}

.selection-controls {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.bpdm-grid-il {
    display: grid;
    grid-template-columns: minmax(320px, 390px) 1fr;
    gap: 24px;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
}

@media screen and (max-width: 1150px) {
    .bpdm-grid-il {
        grid-template-columns: 1fr;
    }
}

#selected-count, #selected-count-all {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

@media screen and (max-width: 960px) {
    .bpdm-dashboard-wrapper { 
        flex-direction: column; 
        margin: 10px 10px 20px 0;
        min-height: auto;
    }
    .bpdm-sidebar { 
        width: 100%; 
        min-width: 100%;
        height: auto; 
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .bpdm-nav { 
        display: flex; 
        overflow-x: auto; 
        padding: 8px 10px; 
    }
    .bpdm-nav-separator { 
        display: none; 
    }
    .bpdm-nav-item { 
        flex-shrink: 0; 
        margin: 0 4px; 
        padding: 8px 12px;
        white-space: nowrap;
    }
    .bpdm-content-area { 
        padding: 20px 16px; 
    }
}

/* Author Tools Specific Styling */
.author-tools-wrapper {
    max-width: 100%;
}

.author-tools-wrapper .bpdm-section {
    margin: 20px 0;
    border-radius: 5px;
}

.author-tools-wrapper .bpdm-section:first-child {
    background: #fff8f0 !important;
    border-left: 5px solid #ff8c00 !important;
    border-top: 1px solid #ffb84d;
}

.author-tools-wrapper .bpdm-section:first-child h2 {
    color: #cc6600 !important;
    border-bottom: 2px solid #ff8c00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.author-tools-wrapper .bpdm-section:last-child {
    background: #f0f8ff !important;
    border-left: 5px solid #0073aa !important;
    border-top: 1px solid #4da6d9;
}

.author-tools-wrapper .bpdm-section:last-child h2 {
    color: #005a87 !important;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.author-generator-info {
    background: #e6f3ff !important;
    border: 1px solid #b3d9ff !important;
    border-radius: 4px;
}

.generate-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

#authors-preview {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
}

.author-item {
    transition: background-color 0.2s;
    border-radius: 3px !important;
}

.author-item:hover {
    background: #f0f8ff !important;
    border-color: #0073aa !important;
}

.post-item-author {
    transition: background-color 0.2s;
    border-radius: 3px;
}

.post-item-author:hover {
    background: #f0f8ff !important;
    border-left-color: #0073aa !important;
}

#generate-authors-btn {
    background: #ff8c00 !important;
    border-color: #e67300 !important;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.1);
    box-shadow: 0 1px 0 #e67300;
}

#generate-authors-btn:hover {
    background: #e67300 !important;
    border-color: #cc6600 !important;
}

#randomize-authors-btn {
    background: #0073aa !important;
    border-color: #005a87 !important;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.1);
    box-shadow: 0 1px 0 #005a87;
}

#randomize-authors-btn:hover {
    background: #005a87 !important;
    border-color: #004d73 !important;
}

.author-tools-wrapper > div[style*="border-top"] {
    background: linear-gradient(135deg, #fff8f0 0%, #f0f8ff 100%);
    border: 1px solid #ddd !important;
    border-radius: 5px;
    text-align: center;
    padding: 15px;
    margin: 25px 0;
}

.author-tools-wrapper > div[style*="border-top"] h2 {
    background: linear-gradient(135deg, #ff8c00, #0073aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}

#existing-authors-loading,
#authors-loading,
#posts-author-loading,
#generate-loading,
#randomize-loading {
    color: #666;
    font-style: italic;
}

#author-generator-results .notice-success,
#author-randomizer-results .notice-success {
    border-left-color: #46b450 !important;
    background: #ecf7ed !important;
}

#author-generator-results .notice-error,
#author-randomizer-results .notice-error {
    border-left-color: #dc3232 !important;
    background: #fbeaea !important;
}

#selected-authors-count,
#selected-posts-author-count {
    font-weight: bold;
    color: #0073aa;
    background: #e7f3ff;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #b3d9ff;
}

@media screen and (max-width: 768px) {
    .bpdm-section {
        margin: 10px 0;
        padding: 15px;
    }
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .selection-controls .button {
        display: block;
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    .posts-container {
        max-height: 300px !important;
    }
    .author-tools-wrapper .bpdm-section {
        padding: 15px;
    }
    #authors-container,
    #posts-author-container {
        margin: 15px 0;
    }
    .generate-preview {
        padding: 10px;
    }
}

.notice-success {
    border-left-color: #46b450;
    background: #ecf7ed;
}

.notice-error {
    border-left-color: #dc3232;
    background: #fbeaea;
}

.wp-list-table th,
.wp-list-table td {
    padding: 8px 10px;
}

.wp-list-table .button-small {
    font-size: 11px;
    height: auto;
    line-height: 1.4;
    padding: 2px 6px;
}

.nav-tab-wrapper {
    margin-bottom: 20px;
}

.nav-tab {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.71428571;
    color: #555;
    text-decoration: none;
    border: 1px solid #ccd0d4;
    background: #f1f1f1;
    margin-right: 5px;
}

.nav-tab:hover {
    background: #fff;
    color: #444;
}

.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #000;
}

.bpdm-testimonial-item {
    background: #e8f6f3;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 15px 0;
    padding: 15px;
    text-align: center;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.bpdm-testimonial-item .bpdm-testimonial-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.bpdm-testimonial-item .bpdm-testimonial-author {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.bpdm-testimonial-item .bpdm-testimonial-rating {
    margin-top: 10px;
    font-size: 1.2em;
}

.bpdm-testimonial-item .bpdm-star {
    color: #FFD700;
    margin: 0 1px;
}
.bpdm-testimonial-item .bpdm-star-empty {
    color: #ccc;
}

.bpdm-quote-fact-widget {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin: 15px 0;
    padding: 15px;
    text-align: center;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.bpdm-quote-fact-widget .bpdm-quote-fact-text {
    font-size: 1.15em;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.sk-dynamic-footer-text {
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.95em;
    color: #555;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
    border-radius: 8px;
    border: 1px solid #ddd;
    border-left: 4px solid #28a745;
}
@media screen and (max-width: 768px) {
    .sk-dynamic-footer-text {
        padding: 10px;
        margin: 20px 5px;
    }
}

.bpdm-quote-fact-archive-top {
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    background: #f0f8ff;
    border: 1px solid #add8e6;
    border-left: 4px solid #0073aa;
    border-radius: 5px;
    max-width: 90%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    font-style: italic;
    color: #333;
    line-height: 1.5;
}
.bpdm-quote-fact-archive-top p {
    margin: 0;
    font-size: 1.1em;
}

@media screen and (max-width: 768px) {
    .bpdm-quote-fact-archive-top {
        margin: 15px 10px;
        padding: 10px;
    }
}

.sk-author-box {
    background: #f9f9f9;
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-top: 2px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1.6;
}

.sk-author-avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sk-author-info {
    flex-grow: 1;
}

.sk-author-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.sk-author-bio {
    margin: 0;
    font-size: 0.95em;
    color: #555;
}

.sk-author-bio strong {
    color: #222;
}

@media screen and (max-width: 480px) {
    .sk-author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* --- KODE BARU: Table of Contents (ToC) Styles --- */
.sk-toc-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    width: auto;
    max-width: 100%;
}

.sk-toc-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

.sk-toc-container ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}

.sk-toc-container ul ul {
    list-style-type: circle;
    margin-top: 8px;
}

.sk-toc-container li {
    margin-bottom: 8px;
}

.sk-toc-container a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.2s;
}

.sk-toc-container a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sk-toc-collapsible .sk-toc-title {
    cursor: pointer;
}

.sk-toc-toggle {
    font-size: 0.8em;
    font-weight: normal;
    color: #6c757d;
    margin-left: 8px;
}
/* --- AKHIR KODE BARU --- */