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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.5;
}

.app-shell {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.app-sidebar {
    width: 50px; /* Narrow IDE-style activity bar */
    background-color: #161b22;
    border-right: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Remove top padding to align logo */
    flex-shrink: 0;
}

.logo-container {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #21262d;
    border-bottom: 1px solid #30363d;
    margin-bottom: 10px;
    overflow: hidden;
}

.sidebar-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 0 5px rgba(247, 129, 102, 0.3);
}

.nav-scroll-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.app-sidebar .nav-item {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8b949e;
    cursor: pointer;
    transition: color 0.2s, border-left 0.2s;
}

.app-sidebar .nav-item:hover {
    color: #f0f6fc;
    background-color: #21262d;
}

.app-sidebar .nav-item.active {
    color: #f0f6fc;
    border-left: 2px solid #f78166;
}

.main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.app-header {
    background-color: #161b22;
    color: #f0f6fc;
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #30363d;
    z-index: 10;
}

.app-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    -webkit-overflow-scrolling: touch;
    background-color: #0d1117;
    text-align: left;
}

.app-content h1, .app-content h2 {
    font-weight: 600;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #30363d;
    margin-top: 24px;
    margin-bottom: 16px;
    color: #f0f6fc;
}

.app-content h1 { font-size: 2em; }
.app-content h2 { font-size: 1.5em; }

.app-content p, .app-content ul {
    margin-bottom: 16px;
}

.app-content ul {
    padding-left: 2em;
}

.app-content code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(110, 118, 129, 0.4);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

.weather-alert {
    background-color: #d73a49;
    color: #ffffff;
    height: 40px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #cb2431;
    display: flex;
    align-items: center;
}

.notification-track {
    display: flex;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    animation: marquee 30s linear infinite;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 150px;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.alert-icon {
    font-size: 1.2em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #00ff00;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.2;
}

.boot-line {
    margin-bottom: 2px;
    white-space: pre-wrap;
}

.boot-line.ok::before {
    content: "[  OK  ] ";
    color: #00ff00;
}

.boot-line.info::before {
    content: "[ INFO ] ";
    color: #00aaff;
}

.boot-line.warn::before {
    content: "[ WARN ] ";
    color: #ffff00;
}

.boot-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: #00ff00;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hidden {
    display: none !important;
}
