body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
  background-color: #FDF6EC;
  color: #333333; /* chữ đen vừa */
  height: 100%;
}

/* ----- MENU TRÁI (sidebar) ----- */
.sidebar {
  width: 260px;
  background: #ffffff; /* trắng */
  border-right: 2px solid #FFA447;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333; /* chữ đen vừa */
  position: relative;
  transition: transform 0.3s ease;
  z-index: 20;
}

.sidebar .logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  margin-top: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #f37f09;
}

.sidebar .logo i {
  font-size: 24px;
}

.sidebar .menu {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-title {
  font-size: 15px;
  color: #333;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 6px;
}

.sidebar .menu a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 2px 12px;
  color: #333333; /* chữ đen vừa */
  text-decoration: none;
  font-size: 15px;
  font-weight:600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar .menu a i {
  font-size: 16px;
}

/* Hover menu links màu cam */
.sidebar .menu a:hover {
  color: #ff6b6b;
}

/* Nút màu cam */
.sign-in-btn {
  padding: 12px;
  background-color: #f37f09; /* màu cam */
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

.sign-in-btn:hover {
  background-color: #E56D00;
}

.logoutbtn{
	background: linear-gradient(to right, #ff6b6b, #ff9472);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
	width:100%;
}
#aicp-user-panel {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-direction: column;
	justify-content: flex-start;
	margin-top: 10px;
}

#aicp-user-panel img{
	width: 40px;
    height: 40px;
    border-radius: 50%;
}

#aicp-user-panel button{
	width:100%;
}

#aicp-user-panel button#sign-in-btn{padding:12px 24px}

.aicp-user-name {
  font-weight: bold;
  color: #ff6b6b;
  font-size:1rem;
}
.aicp-avatar-fallback {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #512da8;
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px #ccc;
  transition: transform 0.2s ease;
}
/* ----- PHẦN PHẢI (main-content) ----- */


.aicp-loading {
  opacity: 0;
  margin-top:20%;
  transition: opacity 0.3s ease;
}
.aicp-loading.active {
  opacity: 1;
}


.aicp-loading-box {
  width: 400px;
  font-size: 1rem;
}

.aicp-loading-top,
.aicp-loading-bottom {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.aicp-progress-bar {
  width: 100%;
  height: 15px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin:5px auto;
}

.aicp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff9472);
  width: 0%;
  border-radius: 5px;
}


/* -------- Responsive -------- */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  /* Ẩn sidebar mặc định */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    background: #fff;
    z-index: 1000;
    padding: 24px 16px;
  }
  /* Khi sidebar mở */
  .sidebar.open {
    transform: translateX(0);
  }

  /* Tạo nút hamburger */


  /* Hamburger bars */
  .menu-toggle-btn span,
  .menu-toggle-btn span::before,
  .menu-toggle-btn span::after {
    display: block;
    background-color: white;
    height: 3px;
    width: 20px;
    border-radius: 2px;
    position: relative;
  }
  .menu-toggle-btn span::before,
  .menu-toggle-btn span::after {
    content: "";
    position: absolute;
  }
  .menu-toggle-btn span::before {
    top: -6px;
    left: 0;
  }
  .menu-toggle-btn span::after {
    top: 6px;
    left: 0;
  }

  /* Main content full width khi sidebar ẩn */
  .main-content {
    padding-top: 60px;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
  }

  .prompt-bar {
    bottom: 10px;
    padding: 8px 12px;
  }

  .center-content {
    padding: 1rem;
  }

  .title {
    font-size: 28px;
  }

  .logo {
    font-size: 20px;
  }
}
