.sidebar-main-logo img { height: 40px; width: auto; }

/* ── Color Presets Panel ──────────────────────────────── */
.color-presets-panel {
    margin-bottom: 1rem;
}
.presets-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 0 0 0.65rem;
}
.presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
}

/* Swatch button — layout/color handled via inline styles in HTML */
.color-swatch-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1;
}
.color-swatch-btn:hover {
    border-color: #007d7e;
    box-shadow: 0 0 0 3px rgba(0,125,126,0.15);
}
.swatch-label {
    font-size: 0.67rem;
    color: #aaa;
    max-width: 62px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ── Hex companion input ─────────────────────────────── */
.color-input-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.color-hex-companion {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.85rem;
    width: 88px;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: inherit;
    letter-spacing: 0.03em;
}
.color-hex-companion:focus {
    outline: none;
    border-color: #007d7e;
    box-shadow: 0 0 0 2px rgba(0,125,126,0.25);
}

/* ── Save as Preset form ─────────────────────────────── */
.save-preset-row {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.save-preset-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    /* note: intentionally a <div>, not <form> — prevents nested form submission */
}
.preset-name-input {
    min-width: 150px;
    max-width: 210px;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.06);
    color: inherit;
    line-height: 1.5;
}
.preset-name-input:focus {
    outline: none;
    border-color: #007d7e;
    box-shadow: 0 0 0 2px rgba(0,125,126,0.2);
}
.save-preset-feedback {
    font-size: 0.78rem;
    font-style: italic;
    color: #888;
}
.save-preset-feedback.feedback-ok { color: #3dba6e; font-style: normal; }
.save-preset-feedback.feedback-error { color: #e05252; font-style: normal; }

/* ── Color History Panel ─────────────────────────────── */
.color-history-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.color-history-panel details > summary {
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    user-select: none;
    padding: 0.2rem 0;
    list-style: none;
}
.color-history-panel details > summary::marker,
.color-history-panel details > summary::-webkit-details-marker {
    display: none;
}
.color-history-panel details > summary::before {
    content: '▶';
    font-size: 0.55rem;
    margin-right: 0.4rem;
    vertical-align: middle;
    opacity: 0.6;
}
.color-history-panel details[open] > summary::before {
    content: '▼';
}
.history-list {
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.history-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.history-time {
    font-size: 0.76rem;
    color: #888;
    flex: 1;
}
.history-restore {
    flex-shrink: 0;
    font-size: 0.72rem !important;
    padding: 2px 10px !important;
    height: auto !important;
    line-height: 1.6 !important;
}

/* ── Sidebar notification badges ─────────────────────── */
.notif-badge {
    display: inline-block;
    background: #30caa0;
    color: #0b1f3a;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.5;
    margin-left: 6px;
    vertical-align: middle;
    pointer-events: none;
}

/* ── Unread notifications dashboard panel ────────────── */
@keyframes notif-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(48,202,160,.5); }
    50%       { opacity: 0.85; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(48,202,160,0); }
}

.unread-notifications-panel {
    background: rgba(11, 31, 58, 0.72);
    border: 1px solid rgba(48, 202, 160, 0.35);
    border-radius: 12px;
    padding: 1.1rem 1.4rem 1.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.unread-panel-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.unread-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #30caa0;
    flex-shrink: 0;
    animation: notif-pulse 2s ease-in-out infinite;
}

.unread-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #30caa0;
    margin: 0;
}

.unread-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.unread-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.06);
}

.unread-label {
    flex: 1;
    font-size: 0.85rem;
    color: #e0e8f0;
    text-decoration: none;
    white-space: nowrap;
}
.unread-label:hover { color: #30caa0; text-decoration: underline; }

.unread-count-badge {
    display: inline-block;
    background: rgba(48,202,160,0.18);
    color: #30caa0;
    border: 1px solid rgba(48,202,160,0.4);
    border-radius: 10px;
    padding: 1px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.55;
    flex-shrink: 0;
}

.unread-mark-btn {
    flex-shrink: 0;
    font-size: 0.72rem !important;
    padding: 2px 10px !important;
    height: auto !important;
    line-height: 1.6 !important;
    white-space: nowrap;
}
