* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  height: 100%;
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #F03663 0%, #F06666 100%);
  color: white;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}

.logo {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 10;
}

.logo img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header h1 {
  font-size: 28px;
  font-weight: 300;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.container {
  display: flex;
  height: calc(100vh - 80px);
}

.sidebar {
  width: 300px;
  background: white;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding-bottom: 20px;
}

.search-box {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.search-box input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.unit-list {
  list-style: none;
  padding-bottom: 10px;
}

.unit-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.unit-item:hover {
  background-color: #e8e9ea;
  color: #667eea;
}

.unit-item.active {
  background-color: #F03663;
  color: white;
}

.content {
  flex: 1;
  background: white;
}

#contentFrame {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 200px;
  }

  .content {
    height: calc(100vh - 280px);
  }
}
