/* --- General Styles & Variables (Bảng màu & Gradient) --- */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #007BFF;
    /* Xanh dương sáng */
    --secondary-color: #6c757d;
    /* Xám phụ */
    --background-color: #f4f7f9;
    /* Nền xám nhạt */
    --text-color: #333;
    --heading-color: #1a2533;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    /* Bóng sâu hơn một chút */
    --border-radius: 12px;
    --header-height: 66px;

    /* --- Biến màu Gradient mới --- */
    --gradient-start: #6dd5ed;
    /* Màu xanh nước biển nhạt */
    --gradient-end: #2193b0;
    /* Màu xanh nước biển đậm */
    --button-gradient-start: #007bff;
    /* Màu xanh dương */
    --button-gradient-end: #0056b3;
    /* Màu xanh dương đậm hơn */
    --kpi-gradient-start: #ffecd2;
    /* Màu hồng nhạt */
    --kpi-gradient-end: #fcb69f;
    /* Màu cam nhạt */
}

/* --- [CHỈNH SỬA] Ảnh nền và Lớp phủ (Overlay) cho Body --- */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    /* Quan trọng để định vị lớp phủ */
    z-index: 1;
    /* Đảm bảo nội dung nổi trên lớp phủ */
    min-height: 100vh;
    /* Đảm bảo body đủ cao để ảnh nền hiển thị */
    background-color: #f0f8ff;
    /* Màu nền dự phòng nếu ảnh không tải */
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background-pattern.png');
    /* Thay bằng đường dẫn ảnh của bạn */
    background-size: cover;
    /* Hoặc 'contain' tùy ý */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    /* Độ trong suốt 30% */
    z-index: -1;
    /* Đặt dưới nội dung */
}

/* --- [CHỈNH SỬA] Bố cục chính cho Trang chủ --- */
.main-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-areas:
        "map search"
        "banner banner"
        "stats stats";
    gap: 2rem;
    align-items: flex-start;
}

.map-container {
    grid-area: map;
    overflow: hidden;
}

.search-container {
    grid-area: search;
}

.banner-container {
    grid-area: banner;
}

.stats-container {
    grid-area: stats;
}

/* --- [CHỈNH SỬA] Style cho thẻ card đồng nhất --- */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    /* Thêm viền nhẹ */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    /* Tăng kích thước tiêu đề */
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 12px;
    /* Tăng khoảng cách icon */
}

.card h2 i {
    color: var(--primary-color);
    font-size: 1.8rem;
    /* Tăng kích thước icon */
}

/* --- [CHỈNH SỬA] Các section của Trang chủ --- */
.map-section,
.search-section,
.stats-section {
    margin-top: 0;
    padding: 1.5rem;
}

/* Culture Banner Section */
.culture-banner {
    padding: 0;
    overflow: hidden;
}

.culture-banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.culture-banner-img:hover {
    transform: scale(1.02);
}

.map-section {
    text-align: center;
    overflow: hidden;
}

.map-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.search-options {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.search-options input[type="radio"],
.search-options input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
    /* Nền hơi trắng hơn */
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

/* --- GIỮ NGUYÊN HOẶC CHỈNH SỬA NHỎ CÁC PHẦN KHÁC --- */
.site-header {
    background: linear-gradient(to right, #005A9C, #007BFF);
    /* Thêm gradient cho header trang tin tức */
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-weight: 700;
}

.subtitle {
    margin: 0.5rem 0 0;
    font-weight: 300;
    opacity: 0.9;
}

.results-grid {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.result-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-color);
    animation: fadeIn 0.5s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.result-item h3 {
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.result-item p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.result-item p span {
    font-weight: 500;
    color: #555;
}

.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: #fff;
    font-size: 0.9rem;
    background: #343a40;
    /* Màu tối cho footer */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   CULTURE MODAL STYLES
   ===================================================== */

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal overlay */
.culture-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.culture-modal {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Modal header */
.culture-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #eee;
    min-height: 80px;
    position: relative;
    z-index: 100;
    background: white;
    flex-shrink: 0;
}

.culture-modal-header h2 {
    margin: 0;
    color: #007BFF;
    font-size: 1.5rem;
}

.culture-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.culture-modal-close:hover {
    color: #333;
}

/* Tabs */
.culture-tabs {
    display: flex;
    gap: 0;
    padding: 0 2.5rem;
    border-bottom: 2px solid #eee;
    background: #f9f9f9;
    overflow-x: auto;
    position: relative;
    z-index: 99;
    flex-shrink: 0;
}

.culture-tab {
    padding: 1.2rem 1.8rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.culture-tab:hover {
    color: #007BFF;
}

.culture-tab.active {
    color: #007BFF;
    background: #E3F2FD;
    border-radius: 4px 4px 0 0;
}

.culture-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #007BFF;
    display: none;
}

/* Category-specific tab colors */
.culture-tab[data-type="du_lich"].active {
    background: #E3F2FD;
    color: #0277BD;
}

.culture-tab[data-type="am_thuc"].active {
    background: #FFF3E0;
    color: #E65100;
}

.culture-tab[data-type="le_hoi"].active {
    background: #F3E5F5;
    color: #6A1B9A;
}

/* Tab content */
.culture-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    position: relative;
    scroll-padding-top: 60px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.culture-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.culture-card-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    overflow: hidden;
}

.culture-card-image img,
.culture-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.culture-card-content {
    padding: 1rem;
}

.culture-card-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.culture-card-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Commune Name Item in Grid */
.commune-name-item {
    grid-column: 1 / -1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0277BD 0%, #01579B 100%);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.commune-name-item:first-child {
    margin-top: 0;
}

.commune-name-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commune-name-label::before {
    content: '📍';
    font-size: 1.3rem;
}

/* Loading state */
.culture-loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* Empty state */
.culture-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

/* Commune Group Styling - DEPRECATED (kept for backward compatibility) */
.commune-group {
    margin-bottom: 2.5rem;
}

.commune-group-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #0277BD;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0277BD;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    will-change: transform;
}

.commune-group-header-first {
    position: static;
    z-index: auto;
}

/* Lazy Loading Placeholder */
.lazy-item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-item.loaded {
    opacity: 1;
}

.placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Culture Detail Modal */
.culture-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 20px;
    overflow-y: auto;
}

.culture-detail-modal {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.detail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.detail-content {
    padding: 2rem;
}

.detail-content h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.8rem;
}

.detail-gallery-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.detail-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    max-width: 100%;
    justify-content: center;
    align-items: center;
}

/* Scrollbar styling */
.detail-gallery::-webkit-scrollbar {
    height: 8px;
}

.detail-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.detail-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.detail-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.detail-gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-video {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.detail-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
}

.detail-description p {
    margin: 0;
    white-space: pre-wrap;
}

.detail-info {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.detail-info-item strong {
    color: #333;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-info-item span {
    color: #666;
    flex: 1;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #E3F2FD;
    color: #0277BD;
    border: 1px solid #90CAF9;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-link-btn:hover {
    background: #BBDEFB;
    border-color: #64B5F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 119, 189, 0.2);
}

.map-link-btn i {
    font-size: 1.1rem;
}

/* Culture button style */
.culture-explore {
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    min-width: 150px;
}

.culture-explore:hover {
    box-shadow: 0 6px 20px rgba(33, 147, 176, 0.4);
}

/* --- [CHỈNH SỬA] Responsive cho bố cục Grid mới --- */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "map"
            "search"
            "banner"
            "stats";
    }
}

@media (max-width: 768px) {
    .header-container {
        position: relative;
        padding: 0 15px;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .logo a img {
        width: 24px;
        height: 24px;
    }

    .logo-text-shine {
        display: none;
    }

    .card {
        padding: 1rem;
    }

    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .search-box input {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .details-panel {
        padding: 1rem;
    }

    .details-panel h3 {
        font-size: 1.1rem;
    }

    .panel-label {
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 1.5rem 0;
        font-size: 0.8rem;
    }

    .site-footer p {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }

    .logo a {
        font-size: 1rem;
    }

    .province-selector-container {
        display: none;
    }

    .card {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .card h2 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        gap: 8px;
    }

    .card h2 i {
        font-size: 1.3rem;
    }

    .main-layout {
        gap: 1rem;
    }

    #staticMapImage {
        height: auto;
        max-height: 300px;
    }

    .search-box {
        margin-bottom: 0.5rem;
    }

    .search-box input {
        font-size: 16px;
        padding: 0.5rem;
        height: 44px;
    }

    .results-dropdown {
        max-height: 250px;
    }

    .result-card {
        padding: 0.75rem;
    }

    .result-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .result-card p {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }

    .details-panel {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .details-panel h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .panel-label {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .details-panel p {
        margin: 0.5rem 0;
        line-height: 1.4;
    }

    .details-actions {
        margin-top: 1rem;
    }

    .map-button {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .site-footer {
        padding: 1rem 0;
        font-size: 0.75rem;
    }

    .site-footer p {
        margin: 0.3rem 0;
    }
}

/* --- GIỮ NGUYÊN và CHỈNH SỬA NHỎ --- */
#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.commune-popup {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px) !important;
}

.commune-popup .leaflet-popup-content-wrapper {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    flex-grow: 1;
    padding: 12px 20px;
    margin-top: 1rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    /* Đậm hơn */
    color: white;
    background: linear-gradient(to right, var(--button-gradient-start), var(--button-gradient-end));
    /* Gradient cho nút */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    /* Bóng nhẹ cho nút */
}

.map-button:hover {
    background: linear-gradient(to right, #0056b3, #004085);
    /* Đổi màu khi hover */
    transform: translateY(-3px);
    /* Nhấn nhá khi hover */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.map-node {
    width: 90vw;
    height: 90vh;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.map-node .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: 2vh;
    right: 2vw;
    font-size: 2.5rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

#staticMapContainer {
    height: 450px;
    width: auto;
    border-radius: 8px;
    background-color: #eaf2f8;
}

.hidden {
    display: none !important;
}

#staticMapImage {
    width: auto;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    object-fit: cover;
    max-height: 450px;

}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 25px;
    box-sizing: border-box;
    /* Sửa dòng này, thêm 25px đệm trái và phải */
}

@media (max-width: 768px) {
    .container-wide {
        padding: 15px 15px;
    }
}

@media (max-width: 480px) {
    .container-wide {
        padding: 10px 10px;
    }
}

.map-buttons-wrapper {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.map-button.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

/* Màu xám */
.map-button.secondary:hover {
    background-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

.search-wrapper {
    position: relative;
}

.results-dropdown {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    box-sizing: border-box;
}

.search-box input:focus,
.search-wrapper.active .search-box input {
    border-radius: 8px 8px 0 0;
}

.results-dropdown .result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.results-dropdown .result-item:last-child {
    border-bottom: none;
}

.results-dropdown .result-item:hover {
    background-color: #f5f5f5;
}

.results-dropdown .result-item h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.results-dropdown .result-item p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 768px) {
    .results-dropdown {
        max-height: 300px;
    }

    .results-dropdown .result-item {
        padding: 10px 12px;
    }

    .results-dropdown .result-item h3 {
        font-size: 0.95rem;
    }

    .results-dropdown .result-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .results-dropdown {
        max-height: 250px;
    }

    .results-dropdown .result-item {
        padding: 8px 10px;
    }

    .results-dropdown .result-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .results-dropdown .result-item p {
        font-size: 0.75rem;
    }
}

/* Culture Search Results Styling */
.culture-result {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    border-left: 4px solid #E91E63;
    cursor: pointer;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.culture-result:last-child {
    border-bottom: none;
}

.culture-result:hover {
    background-color: #fce4ec;
    border-left-color: #C2185B;
}

.culture-result-content {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.culture-result-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 4px;
    object-fit: cover;
    background: #f5f5f5;
}

.culture-result-thumb-empty {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.culture-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.culture-result-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

.culture-result-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.culture-result-category {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: #E91E63;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.culture-result-commune {
    font-size: 0.8rem;
    color: #0277BD;
    font-weight: 500;
}

.culture-result-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search Status Messages */
.search-message {
    padding: 1rem 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.search-loading {
    padding: 1rem 1.5rem;
    text-align: center;
    color: #0277BD;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #0277BD;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-error {
    padding: 1rem 1.5rem;
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
    border-radius: 4px;
    font-size: 0.95rem;
}

.search-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

.search-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive for culture results */
@media (max-width: 768px) {
    .culture-result {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .culture-result-thumb,
    .culture-result-thumb-empty {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .culture-result-name {
        font-size: 0.9rem;
    }

    .culture-result-commune {
        font-size: 0.75rem;
    }

    .culture-result-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .culture-result-desc {
        font-size: 0.75rem;
    }

    .search-empty {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .culture-result {
        padding: 0.6rem;
        gap: 0.6rem;
    }

    .culture-result-content {
        gap: 0.6rem;
    }

    .culture-result-thumb,
    .culture-result-thumb-empty {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .culture-result-name {
        font-size: 0.85rem;
    }

    .culture-result-meta {
        gap: 0.3rem;
    }

    .culture-result-commune {
        font-size: 0.7rem;
    }

    .culture-result-category {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .culture-result-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }
}

.details-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.4s ease-out;
}

.details-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

.details-panel p {
    margin: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.details-panel .panel-label {
    font-weight: 500;
    color: #555;
    display: inline-block;
    min-width: 120px;
}

.details-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.details-actions .map-button {
    flex: 1;
    min-width: 120px;
    margin-top: 0;
}

/* --- Culture Navigation Buttons --- */
.culture-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.culture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.culture-btn:active {
    transform: translateY(0);
}

.culture-du-lich {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
}

.culture-du-lich:hover {
    background: linear-gradient(135deg, #FF5252, #FF3333);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.culture-am-thuc {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.culture-am-thuc:hover {
    background: linear-gradient(135deg, #FF8C00, #FF7000);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.4);
}

.culture-le-hoi {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.culture-le-hoi:hover {
    background: linear-gradient(135deg, #8E44AD, #7D3C98);
    box-shadow: 0 6px 15px rgba(155, 89, 182, 0.4);
}

/* --- [CHỈNH SỬA] Style cho khu vực thống kê --- */
.stats-section {
    padding: 1.5rem;
    background-color: transparent;
    border-radius: var(--border-radius);
}

.kpi-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    flex: 1;
    background: linear-gradient(135deg, var(--kpi-gradient-start), var(--kpi-gradient-end));
    /* Gradient cho KPI */
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #fbc6a7;
    /* Viền phù hợp với gradient */
    box-shadow: 0 4px 12px rgba(252, 182, 159, 0.3);
    /* Bóng cho KPI */
    color: #4a4a4a;
    /* Màu chữ dễ đọc trên nền sáng */
}

.kpi-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e76f51;
    /* Màu số nổi bật */
}

.kpi-card .label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.top-lists {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .top-lists {
        grid-template-columns: 1fr;
    }
}

.top-list {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.top-list h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    font-size: 1rem;
}

.top-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-list li {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-list li:last-child {
    border-bottom: none;
}

.top-list li .name {
    font-weight: 500;
}

.top-list li .value {
    color: #333;
    font-weight: bold;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* --- [CHỈNH SỬA] Header mới cho Trang chủ (dùng màu tươi hơn) --- */
.site-header-main {
    background: linear-gradient(to right, #6dd5ed, #2193b0);
    /* Nền gradient xanh nước biển */
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Giảm z-index để không che các phần tử khác */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Thêm bóng đổ tạo chiều sâu */
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    /* Giới hạn chiều rộng của nội dung bên trong */
    margin: 0 auto;
    /* Căn giữa nội dung */
    padding: 0 25px;
    /* Tạo khoảng đệm 25px ở hai bên */
    box-sizing: border-box;
    width: 100%;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a i {
    color: #f0f0f0;
    /* Icon màu trắng nhẹ */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: white;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Culture Button Styling */

/* --- TOÀN BỘ CODE GỐC CHO CÁC TRANG KHÁC ĐƯỢC GIỮ NGUYÊN --- */
.content-page {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.content-page h1 {
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    margin-top: 0;
}

.content-page h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.content-page p {
    line-height: 1.8;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-card .thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card .content {
    padding: 1rem;
    flex-grow: 1;
}

.article-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    background-color: white;
    /* Đổi màu hamburger thành trắng */
    height: 3px;
    width: 25px;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 5px;
}

@media (max-width: 992px) {
    .hamburger-btn {
        display: block;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
        /* Gradient cho menu mobile */
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-nav ul.nav-open {
        display: flex;
    }

    .main-nav li {
        text-align: center;
        padding: 0.5rem 0;
    }

    .main-nav a:hover::after {
        width: 0;
    }
}

df-messenger {
    --df-messenger-bot-message: #e0f7fa;
    /* Màu tin nhắn bot nhẹ nhàng hơn */
    --df-messenger-user-message: #bbdefb;
    /* Màu tin nhắn user nhẹ nhàng hơn */
    --df-messenger-font-color: #333;
    --df-messenger-send-icon: var(--primary-color);
    --df-messenger-chat-window-height: 450px;
    --df-messenger-chat-window-width: 350px;
}

/* --- Định dạng chữ Logo nổi bật và lấp lánh --- */
/* --- Định dạng chữ Logo nổi bật và lấp lánh (Đã sửa lỗi) --- */
.logo-text-shine {
    font-size: 1.65rem;
    font-weight: 700;
    color: white;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(255, 255, 255, 0.5);

    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #fff, #eee, #fff);
    background-size: 200% 100%;

    /* Sửa lỗi ở đây */
    -webkit-background-clip: text;
    /* Dành cho trình duyệt cũ (Chrome, Safari) */
    background-clip: text;
    /* THÊM DÒNG NÀY: Dành cho trình duyệt hiện đại, sửa lỗi cảnh báo */

    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
}


.logo-animated-sticker {
    position: absolute;
    left: -10px; 
    top: 50%;
    transform: translateY(-50%); 
    height: 60px; 
    width: auto;
    z-index: 101;
    pointer-events: none;
}


.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    /* Đảm bảo có thuộc tính này */
}

/* Định nghĩa Animation lấp lánh */
@keyframes shine {
    0% {
        background-position: -200% 0;
        /* Bắt đầu từ bên trái ngoài */
    }

    100% {
        background-position: 200% 0;
        /* Kết thúc ở bên phải ngoài */
    }
}

/* [TÙY CHỌN] Điều chỉnh lại khoảng cách nếu cần */
.header-logo-img {
    height: 38px;
    /* Tăng chiều cao ảnh logo để khớp với chữ lớn hơn */
    width: auto;
    margin-right: 12px;
    /* Tăng khoảng cách giữa ảnh và chữ */
    vertical-align: middle;
}

/* Sửa lại header-container để có 3 cột */
.header-container {
    display: flex;
    justify-content: space-between;
    /* Đẩy các mục ra xa nhau */
    align-items: center;
}

.logo,
.main-nav {
    flex-shrink: 0;
    /* Không cho co lại */
}

/* Định dạng cho vùng chứa dropdown ở giữa */
.province-selector-container {
    flex-grow: 1;
    /* Lấp đầy khoảng trống ở giữa */
    display: flex;
    justify-content: center;
    /* Căn dropdown ra giữa */
    padding: 0 2rem;
}

/* Làm đẹp cho thẻ select */
.province-select-dropdown {
    width: 100%;
    max-width: 350px;
    padding: 10px 40px 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: background-color 0.3s ease;
}

.province-select-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.province-select-dropdown option {
    background-color: #2193b0;
    /* Màu nền cho các lựa chọn */
    color: white;
}

.contribution-container {
    grid-area: stats;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#user-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

fieldset {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

fieldset:disabled {
    opacity: 0.5;
}

#user-profile .map-button {
    flex-grow: 0;
    /* Tắt chế độ tự "nở" ra */
    width: auto;
    /* Để nút tự co lại vừa với chữ "Đăng xuất" */
}

#contact-developer-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;

    /* Style cho nút tròn */
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;

    /* Căn giữa icon */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Kích thước icon và hiệu ứng */
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

#contact-developer-btn:hover {
    transform: scale(1.1);
    background: #0056b3;
    /* Màu đậm hơn khi hover */
}

/* Lớp phủ nền mờ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Nội dung hộp thoại */
.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(-20px);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-content .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.contact-info {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

/* Thêm thuộc tính này để có thể định vị nút con theo nó */
.search-wrapper {
    position: relative;
}

/* Style cho nút "Đóng góp" */
.scroll-to-contribute-btn {
    position: absolute;
    top: -15px;
    /* Nổi lên trên panel một chút */
    right: 0;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;

    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    /* Bo tròn */

    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
    /* Đảm bảo nó nổi lên trên */
}

.scroll-to-contribute-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Thêm vào cuối file style.css */
.unverified-label {
    font-size: 0.8rem;
    font-style: italic;
    color: #e74c3c;
    /* Một màu đỏ/cam để gây chú ý */
    font-weight: 500;
    margin-left: 8px;
}

/* Nhãn "Chưa xác minh" màu cam/đỏ */
.unverified-label {
    font-size: 0.8rem;
    font-style: italic;
    color: #e67e22;
    /* Màu cam */
    font-weight: 500;
    margin-left: 8px;
}

/* Biểu tượng (icon) để bấm xác minh */
.verify-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.verify-icon:hover {
    transform: scale(1.2);
}

/* Tích xanh "Đã xác minh" */
.verified-check {
    font-size: 0.9rem;
    color: #2ecc71;
    /* Màu xanh lá */
}

/* --- Thống kê tổng quan (Overall Stats) --- */
.overall-stats-section {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.overall-stats-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overall-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 120px;
}

.stat-mini-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1976d2;
    line-height: 1.2;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.stat-mini-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    animation: slideRightMini 1.5s ease-in-out infinite;
}

@keyframes slideRightMini {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .overall-stats-row {
        gap: 1rem;
    }

    .stat-mini {
        min-width: 100px;
    }

    .stat-mini-number {
        font-size: 1.4rem;
    }

    .stat-mini-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .overall-stats-section {
        padding: 0.8rem 1rem;
    }

    .overall-stats-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .overall-stats-row {
        gap: 0.8rem;
    }

    .stat-mini {
        min-width: 80px;
    }

    .stat-mini-number {
        font-size: 1.1rem;
    }

    .stat-mini-label {
        font-size: 0.65rem;
    }

    .stat-mini-arrow {
        font-size: 1.2rem;
    }

    .kpi-cards {
        flex-direction: column;
    }

    .kpi-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .overall-stats-section {
        padding: 0.6rem 0.8rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .overall-stats-section h3 {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .overall-stats-row {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .stat-mini {
        min-width: 70px;
        flex: 0 1 auto;
    }

    .stat-mini-number {
        font-size: 0.9rem;
    }

    .stat-mini-label {
        font-size: 0.6rem;
    }

    .stat-mini-arrow {
        font-size: 1rem;
        margin: 0 0.2rem;
    }

    .kpi-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .kpi-card {
        padding: 0.8rem;
    }

    .kpi-card h3 {
        font-size: 0.9rem;
    }

    .top-lists {
        grid-template-columns: 1fr;
    }

    .top-list {
        padding: 1rem;
    }

    .top-list h4 {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .top-list li {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    .culture-modal {
        width: 95%;
        max-height: 90vh;
    }

    .culture-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .culture-tabs {
        overflow-x: auto;
    }
}

/* ===== ADMIN PAGE STYLES ===== */

.admin-main {
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Admin Container */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.admin-container h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Login Section */
.admin-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.admin-login-box {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-login-box h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.admin-login-box p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Form Section */
.admin-form-section {
    display: block;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-align: center;
    max-width: 80px;
    transition: all 0.3s ease;
}

.step.step-active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.step.step-active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 0.5rem;
    position: relative;
    top: -12px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: slideIn 0.3s ease;
}

.form-step.step-active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group legend {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-select option {
    background-color: white;
    color: #333;
    padding: 0.5rem;
}

textarea.form-input {
    resize: vertical;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Radio Options */
.radio-option {
    display: block;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.02);
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--primary-color);
}

.radio-label {
    cursor: pointer;
}

.radio-label strong {
    display: block;
    margin-bottom: 0.25rem;
}

.radio-label small {
    display: block;
    color: var(--secondary-color);
}

/* Item Forms */
.admin-items-container {
    margin-bottom: 2rem;
}

.item-form {
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.item-header h3 {
    margin: 0;
    color: var(--primary-color);
}

/* URL List Management */
.url-list {
    margin-bottom: 0.75rem;
}

.url-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.url-input-wrapper .form-input {
    flex: 1;
}

.url-input-wrapper .btn-sm {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Form Buttons Container */
.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.form-buttons .btn-next {
    margin-left: auto;
}

.form-buttons .btn-prev {
    margin-right: auto;
}

.form-buttons .btn-prev.hidden {
    display: none;
}

/* Review Section */
.admin-review-container {
    margin-bottom: 2rem;
}

.review-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.review-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
}

.review-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.review-table td {
    padding: 0.75rem;
}

.review-table td:first-child {
    font-weight: 500;
    color: var(--secondary-color);
    width: 40%;
}

.review-item {
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.review-item h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
}

.review-item p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Error & Loading Messages */
.error-message {
    padding: 0.75rem 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 1rem;
}

.error-message.hidden {
    display: none;
}

.loading-spinner {
    padding: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.loading-spinner.hidden {
    display: none;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success Modal */
.admin-success-modal {
    max-width: 500px;
}

.success-icon {
    text-align: center;
    margin: 1rem 0;
}

.success-icon i {
    font-size: 4rem;
    color: #28a745;
}

.admin-success-modal h2 {
    color: #28a745;
    text-align: center;
    margin: 1rem 0;
}

.admin-success-modal p {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.success-details {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.success-details p {
    margin: 0.5rem 0;
    text-align: left;
}

.success-buttons {
    display: flex;
    gap: 1rem;
}

.success-buttons .btn {
    flex: 1;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .step-indicator {
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }

    .step-line {
        margin: 0 0.25rem;
        top: -10px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
    }

    .form-buttons .btn-next {
        margin-left: 0;
        order: 2;
    }

    .form-buttons .btn-prev {
        margin-right: 0;
        order: 1;
    }

    .success-buttons {
        flex-direction: column;
    }

    .success-buttons .btn {
        width: 100%;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .item-form {
        padding: 1rem;
    }

    .admin-login-box {
        max-width: 100%;
    }
}

/* ===== ADMIN TABS & DELETE FUNCTIONALITY ===== */

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-tab:hover {
    color: #0277BD;
}

.admin-tab.active {
    color: #0277BD;
    border-bottom-color: #0277BD;
}

.admin-tab[data-type="du_lich"].active {
    background-color: #E3F2FD;
    color: #0277BD;
}

.admin-tab[data-type="am_thuc"].active {
    background-color: #FFF3E0;
    color: #F57C00;
}

.admin-tab[data-type="le_hoi"].active {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.delete-items-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.delete-item-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.delete-item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #0277BD;
}

.delete-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.delete-item-header h4 {
    margin: 0;
    color: #333;
    word-break: break-word;
    flex: 1;
}

.delete-item-card p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
}

.delete-item-card p strong {
    color: #333;
}

.delete-item-card a {
    color: #0277BD;
    text-decoration: none;
    word-break: break-all;
}

.delete-item-card a:hover {
    text-decoration: underline;
}

.delete-items-list {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Mobile Responsive Styles for Culture Grid */
@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .commune-group-header {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .commune-name-item {
        padding: 0.75rem 1rem;
        margin-top: 1rem;
    }

    .commune-name-label {
        font-size: 1rem;
    }

    .commune-name-label::before {
        font-size: 1.1rem;
    }

    .culture-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .culture-tab-content {
        max-height: calc(100vh - 220px);
    }
}

@media (max-width: 480px) {
    .commune-group {
        margin-bottom: 1.5rem;
    }

    .commune-group-header {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .culture-card-image {
        height: 120px;
    }
}

/* ===== CONTRIBUTION CHOICE MODAL STYLES ===== */
.contribution-choice-modal {
    max-width: 500px;
    padding: 2rem;
}

.contribution-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contribution-choice-btn {
    padding: 1.2rem;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contribution-choice-btn i {
    font-size: 1.3rem;
}

.contribution-choice-btn:hover {
    transform: translateY(-2px);
    background-color: #f4d006;
    color: #000;
}

/* ===== CULTURE CONTRIBUTION WIZARD MODAL ===== */
.culture-contribution-modal {
    max-width: 600px;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.culture-contribution-wizard {
    position: relative;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.culture-category-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-option {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option:hover {
    border-color: #f4d006;
    background-color: #fffaf0;
}

.category-option input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.category-option input[type="radio"]:checked + .category-label {
    color: #f4d006;
    font-weight: 600;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.category-label i {
    font-size: 1.2rem;
}

.culture-items-container {
    margin: 1.5rem 0;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.culture-item-form {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.4rem;
    border-left: 4px solid #f4d006;
}

.culture-item-form .form-group {
    margin-bottom: 0.8rem;
}

.culture-item-form .form-group:last-child {
    margin-bottom: 0;
}

.culture-item-form label {
    font-weight: 500;
}

.culture-item-form input,
.culture-item-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 0.3rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.culture-item-form textarea {
    resize: vertical;
    min-height: 70px;
}

.remove-item-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.remove-item-btn:hover {
    background-color: #cc0000;
}

.culture-review-content {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
}

.review-section {
    margin-bottom: 1.5rem;
}

.review-section h4 {
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 600;
}

.review-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid #f4d006;
    border-radius: 0.3rem;
}

.review-item-title {
    font-weight: 600;
    color: #333;
}

.review-item-desc {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.wizard-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.wizard-buttons .map-button {
    flex: 1;
    max-width: 150px;
}

.wizard-buttons .map-button.secondary {
    max-width: 120px;
}

/* Mobile responsive for wizard */
@media (max-width: 768px) {
    .contribution-choice-modal,
    .culture-contribution-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 1.5rem;
    }

    .culture-contribution-wizard {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .wizard-buttons {
        flex-wrap: wrap;
    }

    .wizard-buttons .map-button {
        max-width: 100%;
    }

    .contribution-choice-buttons {
        flex-direction: column;
    }
}

/* ===== SUBMISSION REVIEW STYLES ===== */
.submissions-list {
    margin-top: 2rem;
}

.submission-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.submission-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.submission-header {
    background: linear-gradient(135deg, #f4d006, #fffaf0);
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.submission-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.submission-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.submission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.category-badge,
.date-badge,
.email-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.date-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.email-badge {
    background: #e8f5e9;
    color: #388e3c;
    font-family: monospace;
}

.submission-items {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.submission-item {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #f4d006;
    border-radius: 0.3rem;
}

.submission-item:last-child {
    margin-bottom: 0;
}

.item-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.item-video {
    margin-top: 0.5rem;
}

.item-video a {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.9rem;
}

.item-video a:hover {
    text-decoration: underline;
}

.submission-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

.btn-success {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #45a049;
}

.btn-danger {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #da190b;
}

.btn-success i,
.btn-danger i {
    margin-right: 0.5rem;
}

.section-description {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Mobile responsive for submissions */
@media (max-width: 768px) {
    .submission-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .submission-actions {
        flex-direction: column;
    }

    .submission-actions .btn-success,
    .submission-actions .btn-danger {
        width: 100%;
    }

    .submission-items {
        max-height: 300px;
    }
}

/* ========== CULTURE LOADING SPINNER (2-Tier Loading) ========== */
.culture-loading-spinner {
    display: inline-block;
    margin-left: 8px;
    color: #007BFF;
    font-size: 14px;
    animation: spin 1s linear infinite;
}

.culture-loading-spinner.hidden {
    display: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}