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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Google Sans', 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.dark-theme {
    background-color: #0a0a0a;
}
body.dark-theme .top-bar {
    background-color: #111111;
    border-bottom: 1px solid #1a1a1a;
}
body.dark-theme .left-panel {
    background-color: #0d0d0d;
    border-right: 1px solid #1a1a1a;
}
body.dark-theme .menu-btn {
    background-color: #141414;
}
body.dark-theme .menu-btn:hover {
    background-color: #222222;
}
body.dark-theme .weather-card {
    background-color: #141414;
    border: 1px solid #1a1a1a;
}
body.dark-theme .data-card {
    background-color: #111111;
    border: 1px solid #1a1a1a;
}
body.dark-theme .service-item {
    background-color: #141414;
    border: 1px solid #1a1a1a;
}
body.dark-theme .service-item:hover {
    background-color: #1e1e1e;
}
body.dark-theme .right-space {
    background-color: #0a0a0a;
}
body.dark-theme .privacy-block {
    background-color: #111111;
    border: 1px solid #1a1a1a;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    min-height: 60px;
    width: 100%;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.top-left .department {
    font-size: 16px;
    font-weight: 500;
    color: #bbbbbb;
}

.top-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.top-center .datetime {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.top-center .geo-notice {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 20px;
    overflow: hidden;
}

.top-center .geo-notice.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    pointer-events: none;
}

.top-center .geo-notice:hover {
    color: #999;
}

.top-center .geo-notice .material-icons {
    font-size: 14px;
    vertical-align: middle;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.top-right .service-btn {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 24px;
    cursor: pointer;
    background-color: #2a2a2a;
    letter-spacing: 0.3px;
}

.top-right .service-btn:hover {
    background-color: #3a3a3a;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    font-size: 22px;
}
.theme-toggle:hover {
    color: #ccc;
}

.main-container {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.left-panel {
    width: 280px;
    min-width: 240px;
    max-width: 320px;
    background-color: #121212;
    border-right: 1px solid #2a2a2a;
    padding: 24px 0 20px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
}

.avatar-wrapper {
    padding: 0 20px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 8px;
}

.avatar {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1/1;
    background-color: #2a2a2a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23333333"><circle cx="50" cy="35" r="22" fill="%23444444"/><circle cx="50" cy="75" r="32" fill="%23333333"/></svg>');
    background-size: cover;
    background-position: center;
    border: 2px solid #3a3a3a;
}

.username-display {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    letter-spacing: 0.3px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.menu-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    background-color: #1c1c1c;
    width: 100%;
}

.menu-btn .material-icons {
    font-size: 24px;
    color: #888;
}

.menu-btn:hover {
    background-color: #2a2a2a;
}

.menu-btn.active {
    background-color: #2a2a2a;
    border-left: 3px solid #ffffff;
}

.weather-card {
    background-color: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    margin: 8px 0;
}

.weather-icon {
    font-size: 32px;
    color: #e0e0e0;
    flex-shrink: 0;
}

.weather-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.weather-city {
    font-size: 15px;
    font-weight: 500;
    color: #cccccc;
}

.weather-temp {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.weather-desc {
    font-size: 13px;
    color: #aaaaaa;
}

.right-space {
    flex: 1;
    background-color: #0d0d0d;
    padding: 28px 32px;
    overflow-y: auto;
    height: 100%;
}

.right-space h2 {
    font-weight: 500;
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.data-card {
    background-color: #161616;
    border: 1px solid #252525;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.data-card .label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.data-card .value {
    font-size: 17px;
    color: #e0e0e0;
    font-weight: 500;
}

.data-card .value .material-icons {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 8px;
    color: #666;
}

.service-item {
    background-color: #161616;
    border: 1px solid #252525;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-item:hover {
    background-color: #1e1e1e;
}

.service-item .service-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-item .service-name {
    font-size: 17px;
    font-weight: 500;
    color: #e0e0e0;
}

.service-item .service-desc {
    font-size: 14px;
    color: #999;
}

.service-item .service-link {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 20px;
    cursor: pointer;
    background-color: #1c1c1c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-item .service-link:hover {
    background-color: #2a2a2a;
}

.privacy-block {
    background-color: #161616;
    border: 1px solid #252525;
    padding: 24px;
    margin-top: 20px;
}

.privacy-block h3 {
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.privacy-block p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-block .section {
    margin-bottom: 20px;
}

.privacy-block .section-title {
    font-weight: 500;
    color: #ccc;
    font-size: 16px;
    margin-bottom: 6px;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3a3a3a;
}

@media (max-width: 768px) {
    .left-panel {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        height: auto;
        max-height: 50vh;
    }
    .main-container {
        flex-direction: column;
    }
    .right-space {
        height: auto;
        min-height: 300px;
    }
    .top-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }
    .top-center {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
    .service-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .service-item .service-link {
        justify-content: center;
    }
}