:root {
    --bg-main: #0b0c10;
    --bg-header: #121318;
    --bg-sidebar: #121318;
    --bg-card: #181920;
    --bg-hover: #1f212a;
    --bg-active: #1e293b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --border-color: #232530;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 72px;
    --transition-speed: 0.25s;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
  }
  
  body {
    font-family: 'Roboto', 'Google Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  header {
    height: 64px;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 50;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
  }
  
  .icon-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  
  .brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
  }
  
  .brand-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.3px;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color var(--transition-speed), transform var(--transition-speed);
  }
  
  .user-avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
  }
  
  .app-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 64px);
    position: relative;
  }
  
  aside {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    z-index: 40;
  }
  
  body.sidebar-collapsed aside {
    width: var(--sidebar-collapsed-width);
  }
  
  .nav-item {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border-radius: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    gap: 20px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
  }
  
  .nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
  }
  
  .nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
  }
  
  .nav-item.active {
    background-color: var(--bg-active);
    color: var(--accent);
  }
  
  .nav-text {
    opacity: 1;
    transition: opacity var(--transition-speed);
  }
  
  body.sidebar-collapsed .nav-text {
    opacity: 0;
    pointer-events: none;
  }
  
  main {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .main-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  
  .section-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-main);
  }
  
  .empty-state-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    flex: 1;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .illustration-wrapper {
    position: relative;
    width: 260px;
    height: 200px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .graphic-box {
    width: 180px;
    height: 130px;
    border: 2px solid #334155;
    border-radius: 16px;
    position: relative;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  }
  
  .graphic-line {
    width: 80%;
    height: 2px;
    background: #1e293b;
    margin: 6px 0;
  }
  
  .ecg-path {
    stroke: var(--accent);
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: pulseECG 2.5s infinite linear;
  }
  
  @keyframes pulseECG {
    0% { stroke-dashoffset: 400; }
    100% { stroke-dashoffset: 0; }
  }
  
  .floating-badge {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: floatAnim 4s ease-in-out infinite;
  }
  
  .badge-1 {
    top: 10px;
    left: 15px;
    animation-delay: 0s;
  }
  
  .badge-2 {
    bottom: 15px;
    right: 15px;
    animation-delay: 2s;
  }
  
  @keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  
  .empty-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
  }
  
  .empty-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 320px;
  }
  
  @media (max-width: 768px) {
    aside {
      position: absolute;
      height: 100%;
      transform: translateX(0);
    }
    body.sidebar-collapsed aside {
      transform: translateX(-100%);
      width: var(--sidebar-width);
    }
    main {
      padding: 16px;
    }
  }