body {
    margin: 0;
    background: #ced6e5;
    font-family: Arial, sans-serif;
    color: #222;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
}

h2 {
  color: #13136e;
  font-size: 1.6em;;
}

.seo-shell {
    display: flex;
    min-height: 100vh;
}

.seo-sidebar {
    width: 240px;
    background: #67739e;
    color: #fff;
    padding: 22px;
    box-sizing: border-box;
}

.seo-sidebar h2 {
    font-size: 20px;
    margin: 0 0 25px;
}

.seo-sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 4px 4px;
    border-radius: 6px;
    margin-bottom: 3px;
}

.seo-sidebar a:hover {
    background: #48547d;
}

.seo-main {
    position: relative;
    flex: 1;
    margin-top: 56px;
    padding: 30px;
}

.seo-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    align-self: flex-start;
    overflow-y: auto;
}
@media (max-width: 768px){

    .seo-sidebar{
        overflow-y:auto;
    }

}
.card {
    background: #dfe4ee;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-top: 0;
    color: #4f64b3;
}

h3 {
    margin-top: 0;
    color: #4f64b3;
}

label {
    display: block;
    font-weight: bold;
    margin: 14px 0 6px;
	color: #67739e;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd3df;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

textarea {
    min-height: 140px;
}

button,
.button {
    display: inline-block;
    background: #67739e;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    text-decoration: none;
    cursor: pointer;
    margin: 8px 6px 8px 0;
}

button:hover,
.button:hover {
    background: #48547d;
}
/* SOP Buttons */
button-green,
.button-green {
    display: inline-block;
    background: #bc77a2;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 16px;
    text-decoration: none;
    cursor: pointer;
    margin: 8px 6px 8px 0;
}

button-green:hover,
.button-green:hover {
    background: #af5a8f;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.notice {
    background: #eaf7ee;
    border-left: 5px solid #2d9d50;
    padding: 12px;
    margin-bottom: 15px;
}

.warning {
    background: #fff3cd;
    border-left: 5px solid #d39e00;
    padding: 12px;
    margin-bottom: 15px;
}
.warnings {
    background: #fff3cd;
    border-left: 5px solid #d39e00;
    padding: 12px;
    margin-bottom: 15px;
	margin-top:10px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: #c5cddb;
}

.table th,
.table td {
    border-bottom: 1px solid #e0e5ef;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.status-pending {
    font-weight: bold;
    color: #b35b00;
}

.status-posted {
    font-weight: bold;
    color: #22863a;
}

.small {
    font-size: 13px;
    color: #667;
}

.seo-app-header {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    height: 56px;
    background: #ced6e5;
    border-bottom: 1px solid rgba(103, 115, 158, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 9998;
    pointer-events: none;
}

.top-bar {
    position: fixed;
    top: 3px;
    right: 20px;
    z-index: 9999;
    padding-bottom: 0;
}

.account-button {
    display: inline-block;
    background: #ffffff;
    color: #67739e;
    border: 1px solid #67739e;
    padding: 8px 8px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
    /* Match .button / audio-SOP vertical spacing so admin <a> logout
       aligns the same as the user <button> logout. */
    margin: 8px 2px 8px 0;
    vertical-align: middle;
}

button.account-button {
    margin: 8px 6px 8px 0;
}

.account-button:hover {
    background: #67739e;
    color: #ffffff;
}

.sidebar-group {
    margin: 14px 0;
    padding: 6px 0 6px 8px;
    border-left: 2px solid rgba(255,255,255,0.25);
}

.sidebar-group span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 8px;
}

.sidebar-group a {
    font-size: 14px;
    padding: 2px 3px;
    margin-left: 4px;
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.admin-tool-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.admin-tool-card img {
    max-width: 50%;
    height: 75px;
    object-fit: contain;
    margin-bottom: 16px;
}

.admin-tool-card h2 {
    margin-top: 0;
}

.admin-tool-card p {
    margin-bottom: 0;
}

.tool-sales-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    margin-top: 25px;
}

.tool-sales-row img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.tool-sales-page h1 {
    margin-bottom: 10px;
}

.tool-sales-page h2 {
    margin-top: 0;
}

.sidebar-group summary {
    cursor: pointer;
    color: #fff;
    padding: 2px 3px;
    margin-left: 0px;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 8px;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary::after {
    content: " ";
    font-size: 12px;
}

.sidebar-group:not([open]) summary::after {
    content: " ";
}
.sidebar-group details a,
details.sidebar-group a {
    padding-left: 4px;
}

/* Audio Player */
.audio-controls {
    position: fixed;
    top: 2px;
    left: 252px;
    z-index: 9999;
    display: flex;
    gap: 6px;
    align-items: center;
}

@media (max-width: 768px) {
    .seo-app-header {
        left: 0;
        height: 52px;
    }

    .top-bar {
        top: 8px;
        right: 12px;
        left: 12px;
        text-align: right;
    }

    .audio-controls {
        top: 58px;
        left: 12px;
        right: auto;
        z-index: 9999;
    }

    .seo-main {
        margin-top: 96px;
    }
}

.audio-btn{
  appearance:none;
  background:#ffe4dd;
  color:#ff4e33;
  border:1px solid #f5d4cb;
  border-radius:25px;
  padding:4px 10px;
  font-size:12px;
  line-height:1.2;
  cursor:pointer;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:0.02em;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
}

.audio-toggle{
  min-width:72px;
}

.audio-btn:hover{
  background:#f5d4cb;
  border-color:#fc9383;
}

.audio-btn:active{
  transform:translateY(1px);
}

.audio-btn:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(0,0,0,0.15);
}

.audio-icon{
  color:#cd98b9;
  margin-right:4px;
  font-size:14px;
  vertical-align:middle;
}

.audio-label{
  vertical-align:middle;
}

.audio-toggle.is-playing .audio-icon{
  display:inline-flex !important;
}

.audio-stop{
  display:none;
  background:#fc9383;
  box-shadow:0 0 0 2px rgba(0,0,0,0.15);
  color:#fff;
  padding:4px 8px;
}

.audio-stop:hover{
  background:#400;
}

/* Journal Obsidian Page Sections */


.op-sections {
    background: #67739e !important;
    padding: 12px 20px;
    margin: 30px 0 15px 0;
    border-radius: 6px;
}

.op-sections h2 {
    color: #fff !important;
    margin: 0;
}

/* Floating Save */
.floating-save-button {
    position: fixed;
    right: 25px;
    top: 64px;
    z-index: 9999;
    background: #67739e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.floating-save-button:hover {
    background: #000;
}

.dashboard-stat{
    color:#bc77a2;
    font-size:24px;
    font-weight:500;
}

/* Bar diagram on dashboard */
.activity-chart{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:25px;
    margin-bottom:25px;
}

.activity-chart h2{
    margin-top:0;
    margin-bottom:25px;
}

.activity-row{
    display:flex;
    align-items:center;
    margin-bottom:18px;
}

.activity-label{
    width:220px;
    font-weight:600;
}

.activity-bar-wrap{
    flex:1;
    height:22px;
    background:#ececec;
    border-radius:12px;
    overflow:hidden;
    margin:0 15px;
}

.activity-bar{
    height:100%;
    width:0;
    background:#bc77a2;
    border-radius:12px;
    transition:width 1.5s ease;
}

.activity-value{
    width:60px;
    text-align:right;
    font-weight:bold;
    color:#bc77a2;
}

/*Article Overview 3 Numbers In dashboard */
.dashboard-kpis{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin:30px 0;
}

.kpi-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:25px;
    text-align:center;
}

.kpi-number{
    font-size:48px;
    font-weight:700;
    color:#bc77a2;
}

.kpi-label{
    margin-top:10px;
    font-size:16px;
    color:#666;
    font-weight:600;
}

/*Custom Footer Text*/
.custom-footer {
	color: #13136e !important;
	}

.what-next-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #13136e;
    color: #fff !important;
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid #13136e;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    box-sizing: border-box;
    margin: 8px 10px 8px 0;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.what-next-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    background: #bc77a2;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 1px;
    flex-shrink: 0;
}

.what-next-badge-clear {
    background: #67739e;
    border-color: #67739e;
}

.what-next-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.what-next-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.what-next-list li.done a,
.what-next-list li.done a:link,
.what-next-list li.done a:visited,
.what-next-list li.done a:hover,
.what-next-list li.done a:focus,
.what-next-list li.done a:active {
    color: #666;
}

.what-next-list li:not(.done) a,
.what-next-list li:not(.done) a:link,
.what-next-list li:not(.done) a:visited {
    color: #13136e;
}

.what-next-list li:not(.done) a:hover,
.what-next-list li:not(.done) a:focus,
.what-next-list li:not(.done) a:active {
    color: #bc77a2;
}

.what-next-check {
    color: #2e7d32;
    font-weight: bold;
    width: 18px;
    text-align: center;
}

.what-next-check.pending {
    color: #13136e;
}

.what-next-list li:not(.done):hover .what-next-check.pending,
.what-next-check.pending:hover {
    color: #bc77a2;
}

.what-next-meta {
    margin-left: auto;
    color: #888;
    font-size: 13px;
}

.repurpose-group textarea {
    min-height: 180px;
}

.repurpose-anchor {
    scroll-margin-top: 80px;
}

.repurpose-content {
    width: 100%;
    box-sizing: border-box;
}

.repurpose-token-panel {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.repurpose-token-bar {
    height: 20px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0 6px;
}

.repurpose-token-bar-fill {
    height: 100%;
    background: #bc77a2;
    transition: width 0.3s ease;
}

button[disabled],
.button[disabled],
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.seo-spinner {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(206, 214, 229, 0.95);
}

.seo-spinner[hidden] {
    display: none;
}

.seo-spinner-inner {
    text-align: center;
    color: #13136e;
    font-weight: bold;
}

.seo-spinner-inner img {
    animation: seo-spin 1s linear infinite;
}

@keyframes seo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.table th.queue-actions-cell,
.table td.queue-actions-cell {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.queue-action-buttons {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.queue-action-buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}