﻿/* Tổng thể sơ đồ */
@font-face {
    font-family: 'RobotoCondensedBold';
    src: url('../fonts/RobotoCondensed-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
.floor-grp.list-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 20px;*/
    padding: 30px;
    /*background: linear-gradient(180deg, #fff8e1 0%, #fff3c4 100%);*/
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'RobotoCondensedBold', 'Segoe UI', Arial, sans-serif;
}

/* Mỗi hàng (article) */
.list-map-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

    /* Danh sách các phòng ban */
    .list-map-row ul {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* 6 box mỗi hàng */
        gap: 30px;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        
    }

    /* Từng khối */
    .list-map-row li {
        background: #b30000; /* đỏ đậm */
        color: #ffeb3b; /* vàng sáng */
        font-weight: 700;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        border-radius: 10px;
        border: 4px solid #ffeb3b;
        height: 110px; /* Chiều cao gọn */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.35);
        transition: all 0.25s ease;
        cursor: pointer;
    }

        /* Hiệu ứng hover */
        .list-map-row li:hover {
            background: red;
            color: #fff176;
            /*transform: translateY(-4px);*/
            box-shadow: 0 6px 15px rgba(0,0,0,0.35);
        }

        /* Liên kết trong khối */
        .list-map-row li a {
            text-decoration: none;
            /*color: inherit;*/
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            text-shadow: 0 1px 0 #000, 0 2px 1px rgba(0,0,0,0.5), 0 0 5px rgba(255,255,100,0.4), 0 0 10px rgba(255,255,150,0.3);
        }
    
li.active {
        background-color: red !important;
        color: black; /* để chữ rõ hơn trên nền vàng */
        font-weight: bold; /* tuỳ chọn: làm chữ đậm hơn */
    }
.list-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  position: relative;
}

.list-map-row {
  display: flex;
  justify-content: center;
  padding: 30px 0;
  position: relative;
}

/* Đường dọc trung tâm từ hàng trên xuống hàng dưới */
    .list-map-row:not(:first-child):not(:last-child)::before {
        content: "";
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: var(--line-height, 119%); /* dùng biến CSS */
        background-color: var(--red);
        z-index: 0;
    }

/* UL */
.list-map-row ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: center;
  position: relative;
}

/* Đường ngang tự động thêm bằng JS */
.list-map-row ul::before {
  content: "";
  position: absolute;
  top: -30px;
  height: 4px;
  background-color: var(--red);
  z-index: 0;
}

/* LI */
.list-map-row ul li {
  list-style: none;
  /*background-color: var(--green);*/
  position: relative;
}

/* Đường dọc nhỏ từ box lên */
.list-map-row ul li::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 30px;
  background-color: var(--red);
}

/* Mũi tên nhỏ */
.list-map-row ul li::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--red);
}

.list-map-row ul li.list-map-red::before,
.list-map-row ul li.list-map-red::after {
  display: none;
}

/* Box content */
    .list-map-row ul li a {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 200px;
        align-items: center;
        text-align: center;
        padding: 15px 20px;
        color: #ffd705;
        font-weight: 600;
        text-decoration: none;
    }

.list-map-row ul li a span {
  padding: 2px 15px;
  background-color: var(--white);
  border-radius: 24px;
  color: var(--green);
  white-space: nowrap;
}

/*PHAN THAI ADD*/
@keyframes red-blink {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(229,57,53,0);
                border-color: #ccc;
            }

            50% {
                box-shadow: 0 0 16px 6px rgba(229,57,53,0.7); /* cao & rõ hơn */
                border-color: #e53935;
            }
        }

.input-error {
    animation: red-blink 0.6s ease-in-out 4;
    border-color: #e53935 !important;
}
/* Thu nhỏ icon */
.swal-custom-icon {
  transform: scale(0.6); /* nhỏ hơn 60% */
}

/* Tăng cỡ chữ tiêu đề */
.swal-custom-title {
  font-size: 25px !important;
  font-weight: 600;
  color: #e53935;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* To hơn, thoáng hơn toàn popup */
.swal-custom-popup {
  padding: 1.5rem 1rem !important;
  font-size: 20px !important; /* chữ nội dung to hơn */
  line-height: 1.5 !important;
  border-radius: 16px !important;
}

