/* =========== Google Fonts ============ */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");
@font-face {
  font-family: 'Rocher';
  src: url(https://assets.codepen.io/9632/RocherColorGX.woff2);
}
/* =============== Globals ============== */
* {
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2a2185;
  --white: #fff;
  --gray: #f5f5f5;
  --black1: #222;
  --black2: #999;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  position: relative;
  width: 100%;
}

/* =============== Navigation ================ */
.navigation {
  position: fixed;
  width: 80px;
  height: 100%;
  background: var(--blue);
  border-left: 10px solid var(--blue);
  transition: 0.5s;
  overflow: hidden;
}
.navigation.active {
  width: 300px;
}

.navigation ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.navigation ul li:hover,
.navigation ul li.hovered {
  background-color: var(--white);
}

.navigation ul li:nth-child(1) {
  margin-bottom: 40px;
  pointer-events: none;
}

.navigation ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
}
.navigation ul li:hover a,
.navigation ul li.hovered a {
  color: var(--blue);
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 75px;
  text-align: center;
  font-size: 1.75rem;
  margin-top: -0.6rem;
}
.navigation ul li a .icon ion-icon {
  font-size: 1.75rem;
}

.navigation ul li a .title {
  position: relative;
  display: block;
  padding: 0 10px;
  height: 60px;
  line-height: 60px;
  text-align: start;
  white-space: nowrap;
}
#my_name_web{
  float: left;
 
  font-size: 15px;

}

#my_name_web a{   
  color: rgb(27, 53, 200);
  font-family: Rocher; 
 font-size: 20px;
 font-weight: 700; 
 letter-spacing: 2px;
}
/* --------- curve outside ---------- */
.navigation ul li:hover a::before,
.navigation ul li.hovered a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px 35px 0 10px var(--white);
  pointer-events: none;
}
.navigation ul li:hover a::after,
.navigation ul li.hovered a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px -35px 0 10px var(--white);
  pointer-events: none;
}

/* ===================== Main ===================== */
.main {
  position: absolute;
  width: calc(100% - 80px);
  left: 80px;
  min-height: 100vh;
  background: var(--white);
  transition: 0.5s;
}
.main.active {
  width: calc(100% - 300px);
  left: 300px;
}

.topbar {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.toggle {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  cursor: pointer;
}

.search {
  position: relative;
  width: 400px;
  margin: 0 10px;
}

.search label {
  position: relative;
  width: 100%;
}

.search label input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  padding: 5px 20px;
  padding-left: 35px;
  font-size: 18px;
  outline: none;
  border: 1px solid var(--black2);
}

.search label ion-icon {
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 1.2rem;
}

.user {
  position: relative;   
  
}
.user #user_photo { 
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  float: left;

}
.user #user_photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user #name_user {
 align-items: center;
 margin-top: 40px;
 margin-right: 50px;
 float: left;
}
.user #name_user a {
  position:absolute;

  font-size: 10px;
  object-fit: cover;
}
.label_input{
  text-align: left;
  color: #2a2185;
  font-size: 13px;
  font-weight: bold;
}
/* ======================= Cards ====================== */
.cardBox {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
}

.cardBox .card {
  position: relative;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.cardBox .card .numbers {
  position: relative;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--blue);
}

.cardBox .card .cardName {
  color: var(--black2);
  font-size: 1.1rem;
  margin-top: 5px;
}

.cardBox .card .iconBx {
  font-size: 3.5rem;
  color: var(--black2);
}

.cardBox .card:hover {
  background: var(--blue);
}
.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
  color: var(--white);
}

/* ================== Order Details List ============== */
.details {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 30px;
  /* margin-top: 10px; */
}

.details .recentOrders {
  position: relative;
  display: grid;
  min-height: 500px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}

.details .cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cardHeader h2 {
  font-weight: 600;
  color: var(--blue);
}
.cardHeader .btn {
  position: relative;
  padding: 5px 10px;
  background: var(--blue);
  text-decoration: none;
  color: var(--white);
  border-radius: 6px;
  max-width: 80px;
}

.details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.details table thead td {
  font-weight: 600;
}
.details .recentOrders table tr {
  color: var(--black1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.details .recentOrders table tr:last-child {
  border-bottom: none;
}
.details .recentOrders table tbody tr:hover {
  background: var(--blue);
  color: var(--white);
}
.details .recentOrders table tr td {
  padding: 10px;
}
.details .recentOrders table tr td:last-child {
  text-align:center;
}
.details .recentOrders table tr td:nth-child(1) {
  text-align:right;
}
.details .recentOrders table tr td:nth-child(2) {
  text-align: center;
}
.status.delivered {
  padding: 2px 4px;
  background: #8de02c;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.pending {
  padding: 2px 4px;
  background: #e9b10a;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.return {
  padding: 2px 4px;
  background: #f00;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.inProgress {
  padding: 2px 4px;
  background: #1795ce;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.recentCustomers {
  position: relative;
  /* display: grid; */
  min-height: 500px;
  max-height: 1000px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}
.recentCustomers .imgBx {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  overflow: hidden;
}
.recentCustomers .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recentCustomers table tr td {
  padding: 12px 10px;
}
.recentCustomers table tr td h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2rem;
}
.recentCustomers table tr td h4 span {
  font-size: 14px;
  color: var(--black2);
}
.recentCustomers table tr:hover {
  background: var(--blue);
  color: var(--white);
}
.recentCustomers table tr:hover td h4 span {
  color: var(--white);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    padding-left: 35px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #aaa;
    transition: 0.3s;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 12px;
    color: #007bff;
}

.input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.toggle-password {
    right: 10px;
    left: auto;
    cursor: pointer;
}
/* ====================== Dòng 2 ========================== */
.details1 {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 30px;
  /* margin-top: 10px; */
}

.details1 .col1 {
  position: relative;
  /* display: grid; */
  min-height: 500px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}

.details1 .cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cardHeader h2 {
  font-weight: 600;
  color: var(--blue);
}

.cardHeader h1 {
  font-weight: 600;
  color: var(--blue);
}
.cardHeader .btn {
  position: relative;
  padding: 5px 10px;
  background: var(--blue);
  text-decoration: none;
  width: 85px;
  color: var(--white);
  border-radius: 6px;
}

.details1 table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.details1 table thead td {
  font-weight: 600;
}
.details1 .col1 table tr {
  color: var(--black1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.details1 .col1 table tr:last-child {
  border-bottom: none;
}
.details1 .col1 table tbody tr:hover {
  background: var(--blue);
  color: var(--white);
}
.details1 .col1 table tr td {
  padding: 10px;
}
.details1 .col1 table tr td:last-child {
  text-align:center;
}
.details1 .col1 table tr td:nth-child(1) {
  text-align:left;
}
.details1 .col1 table tr td:nth-child(2) {
  text-align: center;
}


.col2 {
  position: relative;
  /* display: grid; */
  min-height: 100px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}
.col2 .imgBx {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
}
.col2 .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.col2 table tr td {
  padding: 12px 10px;
}
.col2 table tr td h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2rem;
}
.col2 table tr td h4 span {
  font-size: 14px;
  color: var(--black2);
}
.col2 table tr:hover {
  background: var(--blue);
  color: var(--white);
}
.col2 table tr:hover td h4 span {
  color: var(--white);
}


/*=================tạo form đăng ký và đăng nhập==========================*/



.area_form {
  display: flex;
  justify-content: center;
  align-items: self-start;
  height: 100vh;
  width: 100%;
}
.container_form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 350px;
  text-align: center;
  position: relative;
}
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  top: -30px;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
  font-size: 16px;
  color: #4facfe;
  font-weight: bold;
}


/* Hộp thoại modal */
.modal {
  display: none; /* Ẩn ban đầu */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* Nội dung hộp thoại */
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Nút */
.modal button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#confirmYes {
  background-color: green;
  color: white;
}

#confirmNo {
  background-color: red;
  color: white;
}

#confirmYes1 {
  background-color: green;
  color: white;
}

#confirmNo1 {
  background-color: red;
  color: white;
}
@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}
h2 {
  margin-bottom: 20px;
}
.input-group {
  margin-bottom: 15px;
  position: relative;
}
.input-group input {
  width: 100%;
  padding: 10px;
  padding-left: 35px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.input-group i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}
.input-group .toggle-password {
  position: absolute;
  left: 280px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
}
.btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: #4facfe;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover {
  background: #00c3ff;
}
.toggle-link {
  margin-top: 10px;
  display: block;
  color: #4facfe;
  cursor: pointer;
}
.hidden {
  display: none;
}

.alert {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  z-index: 9999; 
}

.hidden {
  display: none;
}

/* cập nhật ảnh đại diện-----------------------------*/
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-box {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.popup-buttons button {
  margin: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup-buttons button:first-child {
  background-color: #00b894;
  color: white;
}

.popup-buttons button:last-child {
  background-color: #d63031;
  color: white;
}

a.card {
  text-decoration: none;
  color: inherit; /* để giữ màu chữ như bình thường */
}
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* ====================== Responsive Design ========================== */


@media (max-width: 991px) {
  .navigation {
    left: -300px;
  }
  .navigation.active {
    width: 300px;
    left: 0;
  }
  .main {
    width: 100%;
    left: 0;
  }
  .main.active {
    left: 300px;
  }
  .cardBox {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: 1fr;
  }
  .recentOrders {
    overflow-x: auto;
  }
  .status.inProgress {
    white-space: nowrap;
  }

  .details1 {
    grid-template-columns: 1fr;
  }
  .col1 {
    overflow-x: auto;
  }
 
}

@media (max-width: 480px) {
  .cardBox {
    display: none;
  }
  .cardHeader h2 {
    font-size: 20px;
  }
  .user {
    min-width: 40px;
  }
  .navigation {
    width: 100%;
    left: -100%;
    z-index: 1000;
  }
  .navigation.active {
    width: 100%;
    left: 0;
  }
  .toggle {
    z-index: 10001;
  }
  .main.active .toggle {
    color: #fff;
    position: fixed;
    right: 0;
    left: initial;
  }
}

.scroll-box {
     
      height: 900px;
      overflow: auto;
      border: 1px solid #ccc;
      padding: 10px;
}
.qty_se{
  min-width: 13px;          /* chiều ngang */
  height: 13px;         /* chiều dọc bằng nhau để thành vuông */

  background-color: rgb(243, 96, 5); 
  color: white;
  display: flex;         /* canh giữa chữ */
  justify-content: center;
  align-items: center; 
     /* viền trắng cho nổi */
  box-shadow: 0 4px 12px rgba(114, 4, 231, 0.6); /* glow tím */
  font-weight: bold;
  font-size: 8px;
  border-radius: 50%;
  float: left;
  margin-left: -2px;
  margin-top: -2px;
  padding: 3px; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
 
}
.mark_se{
  min-width: 13px;          /* chiều ngang */
  height: 13px;

  color: rgb(120, 8, 232);
  display: flex;         /* canh giữa chữ */
  justify-content: center;
  align-items: center; 
     /* viền trắng cho nổi */
  box-shadow: 0 4px 12px rgba(114, 4, 231, 0.6); /* glow tím */
  font-weight: bold;
  font-size: 8px;
  border-radius: 20%;
  float: left;
  margin-left: 2px;
  margin-top: -1px;
  padding: 3px; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
 
}

.qty_voca_e{
  min-width: 13px;          /* chiều ngang */
  height: 13px;         /* chiều dọc bằng nhau để thành vuông */

  background-color: rgb(243, 96, 5); 
  color: white;
  display: flex;         /* canh giữa chữ */
  justify-content: center;
  align-items: center; 
     /* viền trắng cho nổi */
  box-shadow: 0 4px 12px rgba(114, 4, 231, 0.6); /* glow tím */
  font-weight: bold;
  font-size: 8px;
  border-radius: 50%;
  float: left;
  margin-left: -2px;
  margin-top: -2px;
  padding: 3px; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
 
}
.mark_voca_e{
  min-width: 13px;          /* chiều ngang */
  height: 13px;

  color: rgb(120, 8, 232);
  display: flex;         /* canh giữa chữ */
  justify-content: center;
  align-items: center; 
     /* viền trắng cho nổi */
  box-shadow: 0 4px 12px rgba(114, 4, 231, 0.6); /* glow tím */
  font-weight: bold;
  font-size: 8px;
  border-radius: 20%;
  float: left;
  margin-left: 2px;
  margin-top: -1px;
  padding: 3px; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
 
}

.lessons-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, white, #b4b8be);
  border-radius: 15px;
  padding: 15px 20px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  color: rgb(13, 137, 247);
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #b4b8be, white);
}

.lesson-icon {
  font-size: 32px;
}

.lesson-info h3 {
  margin: 0;
  font-size: 1.2em;
  color: rgb(33, 6, 234);
}

.lesson-info .desc {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #666;
}
