.system-tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 24px;
}
/* System Tray Items */
.tray-item {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-color);
}
.tray-item {
    margin: 0 -2px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    user-select: none;
    position: relative;
    border-radius: 4px;
    height: 24px !important;
    width: 36px;
    white-space: nowrap;
    font-size: 12px;
}

.tray-item:active {
    background: #ffffff40;
}

.tray-item.active {
    background: #ffffff40;
}

.tray-item.active .material-symbols-rounded {
    color: var(--active-text, #fff);
}

.tray-item .material-symbols-rounded {
    font-size: 16px;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 20;
}

/* Battery Indicator */
.battery-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    padding: 0 14px;
    width: unset;
}

.battery-percent {
    font-size: 11px;
    font-weight: 500;
    min-width: 0;
    text-align: right;
}

.battery-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battery-frame {
    position: relative;
    width: 22px;
    height: 12px;
    padding: 1px;
    border: 1px solid var(--text-color);
    border-radius: 3px;
    background: transparent;
}

.battery-level {
    height: 100%;
    background: var(--text-color);
    border-radius: 1.5px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.battery-frame.charging .battery-level {
    background: #4CAF50;
}

.battery-frame.low .battery-level {
    background: #FF5722;
}

.battery-nub {
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 4px;
    background: var(--text-color);
    border-radius: 0 1px 1px 0;
}

.battery-charging {
    position: absolute;
    font-size: 12px !important;
    color: var(--text-color);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 16;
}

/* WiFi Indicator */
.wifi-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
}

.wifi-base {
    position: absolute;
    opacity: 0.3;
    font-size: 16px;
}

.wifi-signal {
    position: absolute;
    opacity: 1;
    font-size: 16px;
}

.wifi-signal.wifi-1 {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.wifi-signal.wifi-2 {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.wifi-signal.wifi-3 {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.wifi-signal.wifi-off {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
    opacity: 0.5;
}

/* Search Icon */
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Control Center */
.control-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zero (Siri-like) */
.zero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zero>.material-symbols-rounded {
    transform: rotate(270deg);
}

/* Clock */
.clock {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
    padding: 0 12px;
    width: unset;
    gap: 8px;
}

.clock-time, .clock-date {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

#clock {
    font-size: 12px;
}

/* Search Pane Styles */
.search-pane {
    position: fixed;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    top: 20%;
    width: 560px;
    /* min-width: 520px; */
    /* max-width: 600px; */
    max-height: 70vh;
    background: var(--window-bg-75, rgba(255,255,255,0.85));
    box-shadow: 0 8px 40px 0 #0004, 0 0 0 1px #0001;
    border-radius: 12px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    backdrop-filter: blur(32px) saturate(1.8);
    border: 1px solid var(--border-color, #e0e0e0);
    overflow: hidden;
    animation: search-pane-fadein-down 0.18s cubic-bezier(.4,0,.2,1);
}
@keyframes search-pane-fadein-down {
    from { opacity: 0; /* transform: translateX(-50%) scaleY(0.96); */ }
    to   { opacity: 1; /* transform: translateX(-50%) scaleY(1); */ }
}
.search-pane-header {
    padding: 8px 10px 8px 10px;
    background: transparent;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0 0 0;
    margin: 0;
}
.search-autocomplete-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-size: 22px;
    font-family: inherit;
    color: var(--text-secondary, #888);
    opacity: 0.5;
    padding: 0 28px 0 28px;
    line-height: 1.2;
    white-space: pre;
    z-index: 1;
    user-select: none;
    display: flex;
    align-items: center;
}
.search-input {
    position: relative;
    background: transparent;
    z-index: 2;
}
.search-input-icon {
    position: absolute;
    font-size: 24px;
    color: var(--text-secondary, #888);
    pointer-events: none;
    z-index: 2;
}
.search-input {
    width: 100%;
    font-size: 22px;
    padding: 0 28px 0 28px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color, #111);
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 10px;
    box-sizing: border-box;
    transition: box-shadow 0.18s, border-color 0.18s;
    box-shadow: none;
}
.search-results-area {
    border-radius: 0 0 10px 10px;
    margin-top: 2px;
    padding: 0;
    height: 340px;
    max-height: 340px;
    overflow-y: scroll;
    min-height: 0;
    display: none;
    border-top: 1px solid var(--border-color, #ececec);
    transition: opacity 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    transform: translateY(8px);
}
.search-results-area.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.search-section {
    margin: 4px 2px 0 6px;
    padding: 0;
    border-top: 1px solid var(--border-color);
}
.search-section:first-child {
    border: none;
}
.search-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    background: transparent;
    padding: 4px 12px;
    margin: 2px 0;
    letter-spacing: 0.01em;
    line-height: 1;
}
.search-result-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    border-bottom: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    font-size: 12px;
    min-height: 28px;
    gap: 8px;
}
.search-section .search-result-item:first-of-type {
    border-top: none;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: none !important;
    color: inherit !important;
}
.search-result-item.active {
    background: var(--accent-color) !important;
    color: #fff !important;
}
.search-result-item.inactive {
    background: #80808080 !important;
    color: inherit !important;
    outline: none !important;
}
.search-result-name {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-path {
    font-size: 12px;
    color: var(--text-secondary, #888);
    font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
    word-break: break-all;
    opacity: 0.7;
    margin-left: 8px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-results-placeholder {
    color: var(--text-secondary, #888);
    padding: 32px 0;
    text-align: center;
    font-size: 1.08em;
    background: transparent;
    border-radius: 0 0 12px 12px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-result-icon {
    font-size: 18px;
    color: var(--text-secondary, #888);
    vertical-align: middle;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}