:root {
 --headings: #004471;
 --header-bg:#EDEEEF;
 --tekst:#000000;
 --lichte-tekst:#344457;
 --background: #F8F9FA;
 
 --kantlijn_background: #F3F4F5;
 --kantlijn_tekst: #C8CACC;
 --queue-border: #EFF0F1;
 --hover:#CCDAF1;
 
 --kantlijnb:310px;
 --kantlijnRb:520px;
 --footerh:28px;
}

@font-face {
 font-family: 'MaterialSymbolsOutlined';
 src: url('MaterialSymbolsOutlined-VariableFont_FILL,GRAD,opsz,wght.ttf') format('truetype');
 font-weight: normal;
 font-style: normal;
}

.emo {font-family:"Noto Color Emoji";}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html, body {
 height: 100%;
 overflow: hidden;
 font-family:"DejaVu Sans"; 
 font-size:18px;
}

body {
 display: flex;
 flex-direction: column;
 height: 100vh;
}

/* Header */
.header {
 height: 50px;
 min-height: 50px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 0 16px;
 background: var(--header-bg);
 color: var(--tekst);
 width: 100%;
 max-width: 1900px;
 margin: 0 auto;
}

.header-left {
 display: flex;
 align-items: center;
 gap: 10px;
}

.header .material-symbols-outlined {
 font-family: 'MaterialSymbolsOutlined';
 font-size: 24px;
 user-select: none;
 font-variation-settings: 'FILL' 0, 'wght' 400;
}

.material-symbols-outlined {
 font-family: 'MaterialSymbolsOutlined';
 font-size: 24px;
 user-select: none;
 font-variation-settings: 'FILL' 0, 'wght' 400;
}

.clickable {
 cursor: pointer;
}

.header .logo {
 font-size: 28px;
 color:var(--headings);
}

.header .title {
 font-size: 18px;
 font-weight: 600;
 color: var(--headings);
}

.actions .material-symbols-outlined {
 font-size:38px;
 padding-left:16px;
}

/* Main content */
.main {
 flex: 1;
 display: flex;
 overflow: hidden;
 width: 100%;
 margin: 0 auto;
 max-width:1900px;
}

.left-panel {
 width: var(--kantlijnb);
 min-width: var(--kantlijnb);
 padding:16px;
 border-right: 1px solid var(--kantlijn_tekst);
 background: var(--kantlijn_background);
 overflow-y: auto;
 display: flex;
 flex-direction: column;
}

.left-panel > div {
 display: flex;
 flex-direction: column;
 flex: 1;
}


.center-panel {
 flex: 1;
 overflow: auto;
}

.right-panel {
 width: var(--kantlijnRb);
 min-width: var(--kantlijnRb);
 border-left: 1px solid var(--kantlijn_tekst);
 background: var(--kantlijn_background);
 display: flex;
 flex-direction: column;
 overflow: hidden;
}

/* Left panel content */
.left-panel h2, .right-panel h2, #articles h2{
 font-size: 14px;
 color: var(--headings);
 margin: 14px 0 4px 6px; 
}
#articles h2{ 
 margin-left:16px;
}
.left-panel h2:nth-child(1) {
 margin-top:0px;
}

.left-panel a:not(.link) {
 display: block;
 padding: 6px 12px;
 text-decoration: none;
 color: var(--lichte-tekst); 
}

.tools {
 display:flex;
 gap:10px;  flex-direction: column;
 border:solid 1px var(--kantlijn_tekst);
 padding:16px;
 border-radius:12px;
 margin-top:auto;
 font-size:0.8em;
}

.link {
 display: flex;
 align-items: center;
 gap: 10px;
 text-decoration: none;
 padding: 6px 12px;
 color: var(--lichte-tekst); 
}
a.active {
 color:green; 
}



.left-panel a:hover, .pinned-title:hover {
 background: var(--hover);
 border-radius:20px;
}

.link.active {
 color: #198754; 
}
.category-count {
 color:#999; 
}

.favorite-filter-active {
 color: #198754;
}

/* Pinned items in sidebar */
#pinned-section {
 padding-left:0px; 
 padding-top:6px;
}


.pinned-item:hover {
 background: var(--hover);
 border-radius: 20px !important;
}
.pinned-item .pinned-title {
 font-size: 14px;
 color: var(--lichte-tekst);
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 padding:2px; 
}
.pinned-item .pinned-icon {
 font-size: 18px;
 color: var(--headings);
 flex-shrink: 0;
}

.left-panel input[type="checkbox"] {
 transform: scale(1.3);
 margin-right: 8px;
 vertical-align: middle;
}

.left-panel .filter-item {
 display: flex;
 align-items: center;
 padding: 6px 12px;
}

.right-panel .tools {
 margin:16px;
}
.right-panel .tools  h2 {
 margin:0;
 display: flex;
  align-items: center;
  gap: 10px;
}
#queue .queue-container {
 flex: 1;
 overflow-y: auto;
}
#queue > h2 { flex-shrink: 0; padding-bottom: 4px; }
#queue {
 height:340px;
 min-height:340px;
 display: flex;
 flex-direction: column;
 overflow: hidden;
}

#log {
 flex: 1;
 display: flex;
 flex-direction: column;
 overflow: hidden;
}
#logboek {
 height: 200px;
 min-height: 200px;
 display: flex;
 flex-direction: column;
 overflow: hidden;
}
#logboek .log-content {
 flex: 1;
 overflow-y: auto;
 font-family: monospace;
 font-size: 0.75em;
 white-space: pre-wrap;
 word-break: break-all;
 line-height: 1.4;
 color: #4a4c50;
}
#logboek > h2 {
 flex-shrink: 0;
 padding-bottom: 4px;
}
#log > div {
 flex: 1;
 overflow-y: auto;
}
#log li {
 margin-bottom:6px;
 margin-left:16px;
}
/* Search box */
.search-box {
 position: relative;
 margin: 8px 12px;
}

.search-box .material-symbols-outlined {
 position: absolute;
 left: 12px;
 top: 50%;
 transform: translateY(-50%);
 color: var(--lichte-tekst);
 font-size: 20px;
 pointer-events: none;
}

.search-box input[type="text"] {
 width: 100%;
 padding: 10px 12px 10px 40px;
 border: 1px solid var(--kantlijn_tekst);
 border-radius: 24px;
 background: var(--background);
 color: var(--tekst);
 font-size: 14px;
 outline: none;
 transition: border-color 0.2s;
}

.search-box input[type="text"]:focus {
 border-color: var(--headings);
}

/* Footer */
.footer {
 height: var(--footerh);
 min-height: var(--footerh);
 display: flex;
 align-items: center;
 gap:32px;
 background: var(--background);
 color: var(--tekst);
 font-size: 12px;
 border-top: 1px solid var(--kantlijn_tekst);
 padding-left:16px;
 width: 100%;
 max-width: 1900px;
 margin: 0 auto;
}

.queue-item {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 8px 10px;
 margin-bottom: 6px;
 background: var(--background);
 border: 1px solid var(--queue-border);
 border-radius: 8px;
}

.queue-item .material-symbols-outlined {
 font-size: 28px;
}

.queue-item.status-bezig .material-symbols-outlined {
 animation: queue-spin 3s linear infinite;
}

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

.queue-item.status-error {
 color: #d32f2f;
}
.queue-item.status-error .material-symbols-outlined {
 color: #d32f2f;
 cursor: pointer;
}
.queue-item.status-gereed .material-symbols-outlined {
 color: #2e7d32;
}
.queue-id {
 color: #999999;
 font-size: 0.85em;
 margin-left: auto;
}

.error-alert {
 position: fixed;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%) scale(0.95);
 display: flex;
 align-items: flex-start;
 gap: 10px;
 background: #fff3e0;
 border: 1px solid #ffcc80;
 border-radius: 8px;
 padding: 14px 16px;
 max-width: 840px;
 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
 z-index: 1000;
 opacity: 0;
 transition: opacity 0.3s, transform 0.3s;
 pointer-events: none;
 color: #e65100;
}
.error-alert.show {
 opacity: 1;
 transform: translate(-50%, -50%) scale(1);
 pointer-events: auto;
}
.error-alert .material-symbols-outlined {
 font-size: 20px;
 flex-shrink: 0;
 margin-top: 2px;
}
.error-alert-close {
 background: none;
 border: none;
 padding: 0;
 margin: 0;
 cursor: pointer;
 color: #999;
 display: flex;
 align-items: center;
}
.error-alert-buttons {
 display: flex;
 gap: 8px;
 margin-top: 12px;
 width: 100%;
 justify-content: flex-end;
}
.error-alert-btn-sluiten {
 background: #999;
 border: solid 1px #999;
 border-radius: 12px;
 padding: 8px 12px;
 cursor: pointer;
 color: #fff;
 font-size: 0.85em;
}
.error-alert-btn-verwijder {
 background: #d32f2f;
 border: solid 1px #d32f2f;
 border-radius: 12px;
 padding: 8px 12px;
 cursor: pointer;
 color: #fff;
 font-size: 0.85em;
}
.error-alert-btn-opnieuw {
 background: #1976d2;
 border: solid 1px #1976d2;
 border-radius: 12px;
 padding: 8px 12px;
 cursor: pointer;
 color: #fff;
 font-size: 0.85em;
}

button {
 background:var(--hover);

 border-radius:12px;
 padding-left:12px;
 padding-right:12px;
 padding-top:8px;
 padding-bottom:8px;
 cursor:pointer;
 border:solid 1px var(--hover);
}

/* One article view */
#one-article {
 padding: 16px;
}
.one-article-header {
 display: flex;
 justify-content: space-between;
 margin-bottom: 16px;
}
.one-article-actions {
 display: flex;
 gap: 8px;
}
.one-article-header button {
 background: var(--hover);
 border-radius: 50%;
 width: 40px;
 height: 40px;
 border: none;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 24px;
 color: var(--headings);
}
.one-article-header button:hover {
 opacity: 0.8;
}
.one-article-header button.favorite-active {
 color: #d32f2f;
 font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}
#one-article-content {
 background: var(--background);
 border-radius: 12px;
 padding: 20px;
 border: 1px solid var(--queue-border);
}
.one-article-thumbnail {
 float: left;
 width: auto;
 height: 120px;
 margin: 0 16px 12px 0;
 border-radius: 8px;
 object-fit: cover;
}
#one-article-content h2 {
 margin-bottom: 2px;
 margin-top: 12px;
 color: var(--headings);
}
#one-article-content ul,#one-article-content li,#one-article-content ol {
 margin:0; padding:0;
}
#one-article-content ul, #one-article-content ol {
 margin-top:4px;
 margin-top:6px;
}
#one-article-content li {
 margin-left:24px;
}


#one-article-content p {
 margin-top:4px;
 margin-bottom:6px;
}
#one-article-content br {
 line-height:0;display:none;
 height:0;
}
#one-article-content .samenvatting {
 line-height: 1.4;
 color: var(--tekst); 
}

#one-article-meta {
 background: var(--background);
 border-radius: 12px;
 padding: 16px 20px;
 border: 1px solid var(--queue-border);
 margin-top: 12px;
}

.meta-row {
 display: flex;
 align-items: baseline;
 gap: 8px;
 padding: 4px 0;
 font-size: 14px;
 color: var(--lichte-tekst);
}

.meta-label {
 font-weight: 600;
 color: var(--headings);
 min-width: 180px;
 flex-shrink: 0;
}

.meta-row a {
 color: var(--headings);
 text-decoration: underline;
 word-break: break-all;
}

.meta-row a:hover {
 color: var(--tekst);
}


.pinned-item {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 0 !important;
 cursor: pointer;
 border: none !important;
 border-radius: 0 !important;
 margin: 0 !important;
 background: none !important;
 background-color: transparent !important;
 padding-left: 12px !important;
 padding-top: 6px !important;
}



#one-article-content .samenvatting h1 {font-size:1.1em;color:var(--tekst);}
#one-article-content .samenvatting h2 {font-size:1em;}
#one-article-content .samenvatting h3 {font-size:1em;margin-bottom:1px;margin-top:10px;}
#one-article-content .samenvatting h4 {font-size:1em;margin-bottom:1px;margin-top:10px;}
