@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

.snv-navbar {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f1117;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
    z-index: 100;
}

.snv-tabs {
    display: flex;
    align-items: stretch;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.snv-tabs li {
    display: flex;
    align-items: stretch;
    margin: 0;
}

.snv-tabs a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #7a8494;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.snv-tabs a:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.04);
}

.snv-tabs a.active {
    color: #f1f5f9;
    border-bottom-color: #c0392b;
    background: rgba(192,57,43,0.07);
    font-weight: 600;
}

.snv-theme-toggle {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-left: 1px solid rgba(255,255,255,0.07);
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.snv-theme-toggle input[type="checkbox"] { display: none; }

.snv-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    background: #2d3340;
    border-radius: 12px;
    transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.snv-theme-toggle input:checked ~ .snv-toggle-track {
    background: #1e3a5f;
    border-color: rgba(100,160,255,0.3);
}

.snv-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #e2e8f0;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.snv-theme-toggle input:checked ~ .snv-toggle-track .snv-toggle-knob {
    transform: translateX(20px);
    background: #93c5fd;
}

.snv-toggle-label {
    font-size: 12px;
    color: #7a8494;
    user-select: none;
}

#snv-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0f1117;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    display: none;
    padding: 16px 32px;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

#snv-cookie-banner.show { display: block; }

.snv-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.snv-banner-text {
    flex: 1;
    min-width: 260px;
    font-size: 13px;
    color: #7a8494;
    line-height: 1.5;
    margin: 0;
}

.snv-banner-text strong { color: #c9d1d9; }
.snv-banner-text a { color: #c0392b; text-decoration: none; }
.snv-banner-text a:hover { text-decoration: underline; }

.snv-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }

.snv-banner-btns button {
    padding: 7px 16px;
    border-radius: 5px;
    border: none;
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.snv-banner-btns button:hover  { opacity: 0.85; }
.snv-banner-btns button:active { transform: scale(0.97); }

.snv-btn-accept  { background: #c0392b; color: #fff; }
.snv-btn-decline { background: #1e2330; color: #7a8494; border: 1px solid rgba(255,255,255,0.1) !important; }
.snv-btn-privacy { background: transparent; color: #4a5568; border: 1px solid rgba(255,255,255,0.08) !important; }

#snv-cookie-warning {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #c0392b;
    color: #fff;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 12.5px;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 16px rgba(192,57,43,0.4);
    z-index: 9998;
    display: none;
    white-space: nowrap;
}

#snv-cookie-warning.show { display: block; }
#snv-cookie-warning a { color: #fff; text-decoration: underline; margin-left: 10px; cursor: pointer; }

body.dark-mode                          { background-color: #111318; color: #e0e0e0; }
body.dark-mode .modern-control-bar      { background-color: #161b22; border-color: #30363d; }
body.dark-mode .device-row,
body.dark-mode .kachel-box              { background-color: #161b22; border-color: #30363d !important; color: #c9d1d9; }
body.dark-mode .info-box                { background-color: #161b22; border-color: #30363d; color: #c9d1d9; }
body.dark-mode #customViewDropZone      { background-color: #161b22; border-color: #c0392b; }
body.dark-mode #customViewList li       { background-color: #0d1117; border-color: #30363d; color: #c9d1d9; }
body.dark-mode .form-control,
body.dark-mode .btn-outline-secondary,
body.dark-mode .btn-outline-primary     { background-color: #0d1117; border-color: #30363d; color: #c9d1d9; }
body.dark-mode .form-control:focus      { background-color: #0d1117; border-color: #58a6ff; color: #c9d1d9; }
body.dark-mode .dropdown-menu           { background-color: #161b22; border-color: #30363d; }
body.dark-mode .dropdown-item           { color: #c9d1d9; }
body.dark-mode .dropdown-item:hover     { background-color: #21262d; color: #fff; }

@media (max-width: 768px) {
    .snv-navbar        { padding: 0 8px; }
    .snv-tabs a        { padding: 0 12px; font-size: 12.5px; }
    .snv-theme-toggle  { padding: 0 12px; }
    #snv-cookie-banner { padding: 14px 16px; }
    .snv-banner-inner  { flex-direction: column; align-items: stretch; gap: 12px; }
    .snv-banner-btns   { justify-content: stretch; }
    .snv-banner-btns button { flex: 1; }
    #snv-cookie-warning { white-space: normal; width: calc(100% - 32px); text-align: center; }
}