/* admin/css/admin.css */
:root {
  --bs-body-font-size: 13px; /* Kích thước phông chữ nhỏ hơn (ví dụ: 14px) */
  --bs-body-font-weight: 400; /* Có thể điều chỉnh trọng lượng phông chữ */
  --bs-body-line-height: 1.5; /* Có thể điều chỉnh chiều cao dòng */
}

body {
  font-size: 13px; 
  font-family: 'Roboto Condensed', sans-serif;
}

/* Custom styles for the admin panel */
html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

.webTour-wrapper {
    display: flex;
    height: 100vh;
}

/* Sidebar styles */
.webTour-sidebar {
    width: 250px;
    flex-shrink: 0;
    transition: margin-left .25s ease-in-out;
    overflow-y: auto;
}

.webTour-sidebar .webTour-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0d6efd;
    display: block;
}

.webTour-sidebar-menu {
    padding-left: 0;
}

/* Base style cho tất cả các link */
.webTour-sidebar-menu .nav-link, .webTour-sidebar-menu .nav-link-header {
    padding: 0.25rem 1rem;
    color: #495057;
    transition: background-color 0.2s ease-in-out;
    border-radius: 5px;
}

.webTour-sidebar-menu .nav-link:hover, .webTour-sidebar-menu .nav-link.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

.webTour-sidebar-menu .nav-link.active {
    font-weight: 600;
}

/* Style cho các mục con trong submenu */
.webTour-sidebar-menu .submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.webTour-sidebar-menu .submenu .nav-link {
    padding-left: 3rem;
}

.webTour-sidebar-menu .submenu .submenu .nav-link {
    padding-left: 2.8125rem;
}

.webTour-sidebar-menu .nav-link-header {
    font-weight: 600;
    color: #6c757d;
    cursor: default;
    padding: 0.25rem 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.webTour-sidebar-menu .submenu .nav-link.active {
    background-color: transparent;
    font-weight: 600;
}

.webTour-sidebar-menu .nav-item .fas {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Page Content styles */
.webTour-content {
    flex-grow: 1;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#webTour-main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.webTour-container {
    max-width: 1200px;
    margin: 0px auto;
}

/* Tối ưu hóa kích thước font cho tiêu đề */
.webTour-title {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.webTour-subtitle {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Giữ lại các style khác */
#webTour-admin-content {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.table {
    margin-top: 0.5rem;
    border-collapse: separate;
    border-spacing: 0 3px;
    font-size: 0.8rem;
}

/* ... giữ lại tất cả các styles khác từ file admin.css cũ của bạn ... */
.table th,
.table td {
    vertical-align: middle;
    padding: 0.3rem 0.5rem;
    background-color: #f1f3f5;
    border: none;
    line-height: 1;
}

.table thead th {
    font-weight: 600;
    background-color: #e9ecef;
}

.table tbody tr:hover {
    background-color: #e9ecef;
}

.table-sm td, .table-sm th {
    padding: 0.2rem 0.4rem;
}

/* Style cho phần kéo thả */
.webTour-sortable-ghost {
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    opacity: 0.5;
    cursor: grabbing !important;
}

.webTour-sortable-chosen {
    cursor: grabbing !important;
}

.webTour-sortable-handle {
    cursor: grab;
    font-size: 0.75rem;
}

.webTour-sortable-handle-submenu {
    cursor: grab;
    font-size: 0.75rem;
}

/* Style cho ô sửa mô tả trực tiếp */
.webTour-editable-description {
    min-height: 15px;
    padding: 1px 3px;
    border: 1px solid transparent;
    border-radius: 3px;
    outline: none;
    transition: all 0.2s ease-in-out;
    cursor: text;
    display: block;
    font-size: 0.8rem;
}

.webTour-editable-description:hover {
    border-color: #dee2e6;
}

.webTour-editable-description:focus {
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.webTour-editable-description:empty:before {
    content: "Nhập mô tả ảnh...";
    color: #aaa;
    font-style: italic;
}

/* Căn lề cho bảng */
.table-responsive {
    overflow-x: auto;
}

.table th,
.table td {
    white-space: nowrap;
}

/* Căn lề và độ rộng cho bảng hành trình */
#webTour-itinerary-table-body {
    table-layout: fixed;
}
#webTour-itinerary-table-body tr th:nth-child(1),
#webTour-itinerary-table-body tr td:nth-child(1) {
    width: 5% !important;
    text-align: center;
}
#webTour-itinerary-table-body tr th:nth-child(2),
#webTour-itinerary-table-body tr td:nth-child(2) {
    width: 15% !important;
}
#webTour-itinerary-table-body tr th:nth-child(3),
#webTour-itinerary-table-body tr td:nth-child(3) {
    width: 25% !important;
}
#webTour-itinerary-table-body tr th:nth-child(4),
#webTour-itinerary-table-body tr td:nth-child(4) {
    width: 35% !important;
}
#webTour-itinerary-table-body tr th:nth-child(5),
#webTour-itinerary-table-body tr td:nth-child(5) {
    width: 20% !important;
    text-align: right;
}
.table th, .table td:not(:last-child) {
    text-align: left !important;
}
.table td:last-child {
    text-align: right; 
}
.table td .btn {
    margin-left: 3px;
    padding: 0.2rem 0.4rem;
}

/* Modal styles */
.modal-header {
    padding: 0.5rem 1rem;
}

.modal-body {
    padding: 0.75rem;
}

.modal-footer {
    padding: 0.5rem 1rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.form-control {
    font-size: 0.8rem;
    padding: 0.25rem 0.4rem;
}

.truncate {
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.italic{
	font-Style:italic;
}


/* --- SEO Checker Modal Styles --- */


.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.analysis-container {
    font-family: 'Roboto', sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    background-color: #fcfcfc;
}

.analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.analysis-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #212529;
}

.results-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.section-title .icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.problem-title { color: #cc4949; }
.improvement-title { color: #f28500; }
.good-title { color: #378a37; }

.results-list p {
    margin: 0;
    padding: 8px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
}
.results-list p.problem { border-color: #cc4949; }
.results-list p.improvement { border-color: #f28500; }
.results-list p.good { border-color: #378a37; }


/* Style cho loading spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Điều chỉnh font cho Select2 */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    font-size: 0.8rem !important;
}

.select2-container .select2-selection__rendered {
    font-size: 0.8rem !important;
}

.select2-results__option {
    font-size: 0.8rem !important;
}



.webTourAlbum-app-container {
    height: 100vh;
}

.webTourAlbum-sidebar {
    width: 250px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.webTourAlbum-content {
    overflow-y: auto;
}

/* Thêm thuộc tính này để con trỏ chuột đổi hình */
.list-group-item, .webTourAlbum-folder-item, tr {
    cursor: pointer;
}

.webTourAlbum-drop-area {
    border-color: var(--bs-primary) !important;
    transition: background-color 0.3s ease;
}

.webTourAlbum-drop-area.highlight {
    background-color: #e3f2fd;
}

.webTourAlbum-image, .webTourAlbum-folder-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webTourAlbum-image:hover, .webTourAlbum-folder-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.webTourAlbum-image-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webTourAlbum-image img {
    height: 180px;
    object-fit: cover;
}

.webTourAlbum-folder-item .card-img-top i {
    font-size: 5rem;
}
/* Thêm class sticky-header vào file CSS của bạn */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: #f8f9fa; /* Màu nền để tránh nội dung phía sau hiển thị xuyên qua */
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6; /* Đường viền dưới để tách biệt với nội dung bên dưới */
    z-index: 1000; /* Đảm bảo nó nằm trên các phần tử khác */
    box-shadow: 0 2px 4px rgba(0,0,0,.05); /* (Tùy chọn) Thêm đổ bóng nhẹ để hiệu ứng tốt hơn */
}

