* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}
.app {
  display: flex;
  height: 100vh;
  width: 100vw;
}
.sidebar {
  width: 64px;
  background: #2a5a8a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  flex-shrink: 0;
}
.sidebar-logo {
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 24px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: none;
  width: 56px;
  transition: all 0.2s;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.1);
}
.sidebar-item.active {
  background: #4a8ac9;
  color: white;
}
.sidebar-item svg {
  width: 20px;
  height: 20px;
}
.sidebar-item span {
  font-size: 10px;
}
.sidebar-user {
  margin-top: auto;
  position: relative;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.user-avatar svg {
  width: 20px;
  height: 20px;
  fill: white;
}
.main-content {
  flex: 1;
  position: relative;
}
.view {
  display: none;
  width: 100%;
  height: 100%;
}
.view.active {
  display: flex;
}
.desktop-view {
  background: linear-gradient(to bottom, #5a8fc2 0%, #8eb4d9 40%, #b8d4e8 60%, #d4e4ef 75%, #e8eff4 85%, #f0f4f7 100%);
  position: relative;
  overflow: hidden;
}
.mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: 
    linear-gradient(135deg, transparent 40%, #e8eff4 40%, #f5f8fa 45%, #fff 50%, #f0f4f7 55%, #dde8ef 60%, transparent 60%),
    linear-gradient(125deg, transparent 35%, #d4e4ef 35%, #e8eff4 42%, #fff 48%, #f5f8fa 52%, #e0eaf0 58%, transparent 58%),
    linear-gradient(140deg, transparent 45%, #ccdee8 45%, #dde8ef 50%, #f0f4f7 55%, #fff 58%, #e8eff4 62%, transparent 62%);
  background-size: 50% 100%, 40% 100%, 60% 100%;
  background-position: 0% 100%, 30% 100%, 70% 100%;
  background-repeat: no-repeat;
}
.desktop-icons {
  position: absolute;
  left: 32px;
  top: 32px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, 1fr);
  gap: 12px 20px;
}
.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  width: 94px;
  height: 114px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s;
  position: relative;
}
.desktop-icon:hover {
  background: rgba(255,255,255,0.1);
}
.desktop-icon.selected {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.desktop-icon .check {
  display: none;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.desktop-icon.selected .check {
  display: flex;
}
.desktop-icon .check svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}
.desktop-icon .icon-img {
  width: 73px;
  height: 73px;
  flex-shrink: 0;
}
.desktop-icon .icon-img svg {
  width: 100%;
  height: 100%;
}
.desktop-icon .icon-label {
  color: white;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.clock-widget {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 128px;
  height: 128px;
}

.user-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  width: 224px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: 1px solid #e5e7eb;
  padding: 8px 0;
  z-index: 1000;
}

.user-menu.show {
  display: block;
}

.user-menu-header {
  padding: 16px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.user-menu-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.user-menu-header .info {
  flex: 1;
}

.user-menu-header .name {
  font-weight: 600;
  color: #374151;
}

.user-menu-header .role {
  font-size: 12px;
  color: #9ca3af;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.user-menu-item:hover {
  background: #eff6ff;
}

.user-menu-item svg {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.user-menu-item .label {
  flex: 1;
  font-size: 14px;
  color: #374151;
}

.user-menu-item .suffix {
  font-size: 12px;
  color: #9ca3af;
}

.user-menu-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 4px 0;
}
