/* CSS Reset & Cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #333;
}
/* CSS cho khối chứa bình luận */
.comment-item {
    position: relative; /* BẮT BUỘC ĐỂ CĂN CHỈNH NÚT XÓA */
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

    /* CSS cho icon thùng rác */
    .comment-item form button {
        opacity: 0.6; /* Ẩn bớt đi, chỉ hiện rõ khi di chuột vào */
        transition: opacity 0.2s;
    }

    .comment-item:hover form button {
        opacity: 1; /* Hiện rõ khi di chuột vào bình luận */
    }
ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar (Tìm kiếm & Đăng nhập) */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.search-bar {
    margin-right: 20px;
}

    .search-bar input {
        padding: 5px 10px;
        border: 1px solid #ccc;
        border-radius: 3px;
        outline: none;
    }

.login-btn a {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-outline-rose {
    color: #d69ca1;
    border-color: #d69ca1;
}

    .btn-outline-rose:hover {
        background-color: #d69ca1;
        color: white;
    }
/* Header (Logo & Main Nav) */
header {
    text-align: center;
    padding: 40px 0 20px;
}
/* Loại bỏ màu xanh và gạch chân mặc định của link menu */
.category-nav ul li a {
    text-decoration: none !important; /* Xóa gạch chân */
    color: #333 !important; /* Đổi về màu đen hoặc màu Hải thích */
    text-transform: uppercase; /* Viết hoa như trong hình cũ */
}

    /* Hiệu ứng khi di chuột vào (hover) */
    .category-nav ul li a:hover {
        color: #d69ca1 !important; /* Đổi sang màu hồng Rose Beauty khi di chuột vào */
    }
.logo {
    font-size: 40px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.main-nav {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 15px 0;
}

    .main-nav ul {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .main-nav a {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
        transition: color 0.3s;
    }

        .main-nav a:hover {
            color: #d69ca1; 
        }

.category-nav {
    background-color: #f9f9f9;
    padding: 10px 0;
    margin-bottom: 40px;
    text-align: center;
}

    .category-nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .category-nav a {
        font-size: 13px;
        color: #555;
        text-transform: capitalize;
    }

        .category-nav a:hover {
            text-decoration: underline;
        }

.main-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start; 
}
.sidebar-right {
    flex: 3;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    height: fit-content;
    z-index: 10;
}
.content {
    flex: 7;
}

.sidebar {
    flex: 3;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Blog Post Layout */
.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.post-card {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.post-img {
    flex: 1;
    background-color: #eee;
    min-height: 250px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-date {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Times New Roman', Times, serif;
}

.post-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.btn-continue {
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: background 0.3s;
}

    .btn-continue:hover {
        background-color: #d69ca1;
    }

/* Sidebar Widgets */
.widget {
    border: 1px solid #ddd;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

    .widget h3 {
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 15px;
        font-weight: normal;
    }

.widget-content {
    font-size: 13px;
    color: #666;
}

.widget ul li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

    .widget ul li a {
        color: #555;
    }

        .widget ul li a:hover {
            color: #d69ca1;
        }

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    font-size: 13px;
    color: #555;
}

    .footer-col h4 {
        font-size: 14px;
        text-transform: uppercase;
        margin-bottom: 15px;
        color: #222;
    }

.map-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #666;
}
/* Nút 3 gạch */
.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: black;
    transition: 0.3s;
}
.menu-toggle {
    width: 45px;
    height: 45px;
    background-color: rgba(214, 156, 161, 0.2); /* Màu hồng nhạt */
    color: #d69ca1; /* Màu gạch hồng đậm */
    border-radius: 50%;
    /* Căn giữa tuyệt đối */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    padding: 0; /* Xóa padding để không bị lệch */
}
.btn-revenue {
    background-color: #fff;
    color: #d69ca1;
    border: 2px solid #d69ca1;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .btn-revenue:hover {
        background-color: #d69ca1;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(214, 156, 161, 0.3);
    }
    /* Đảm bảo icon bên trong không có margin thừa */
    .menu-toggle i {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: block;
        font-size: 20px;
    }

    .menu-toggle:hover {
        background-color: #d69ca1;
        color: white;
        transform: scale(1.05);
    }

    /* Hiệu ứng khi di chuột vào */
    .menu-toggle:hover {
        background-color: #333; /* Chuyển sang đen giống nút Search khi hover */
        transform: rotate(90deg); /* Xoay nhẹ cho nghệ thuật */
        color: #fff;
    }
.menu-toggle {
    background: rgba(214, 156, 161, 0.1); /* Nền hồng cực nhạt */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle {
    font-size: 26px; /* Tăng kích thước một chút cho dễ nhìn */
    color: #d69ca1; /* Đổi sang màu hồng Rose Beauty đặc trưng */
    cursor: pointer;
    transition: all 0.3s ease; /* Tạo hiệu ứng chuyển màu mượt mà */
    display: inline-block;
    padding: 10px;
}

    /* Hiệu ứng khi đưa chuột vào (Hover) */
    .menu-toggle:hover {
        color: #b57a7f; /* Màu hồng đậm hơn một chút khi hover */
        transform: scale(1.1); /* Nút hơi to ra một chút tạo cảm giác linh hoạt */
    }
/* Sidebar */
.sidebar {
    height: 100%;
    width: 0; /* Mặc định đóng */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #1a1a1a; /* Màu tối sang trọng */
    overflow-x: hidden;
    transition: 0.5s; /* Tốc độ trượt */
    padding-top: 60px;
}

    .sidebar a {
        padding: 15px 25px;
        text-decoration: none;
        font-size: 16px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }
.stat-box {
    background: #fff;
    border: 1px solid #f8f1f2;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(214, 156, 161, 0.1);
    transition: transform 0.3s ease;
}

    .stat-box:hover {
        transform: translateY(-5px);
        border-color: #d69ca1;
    }

.stat-label {
    font-size: 12px;
    text-uppercase: uppercase;
    color: #999;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}
.comment-item button i {
    transition: color 0.3s ease, transform 0.2s ease;
}

.comment-item button:hover i {
    color: #a71d2a !important; 
    transform: scale(1.1); 
}
.delete-post-icon button i {
    transition: color 0.3s ease;
}

.delete-post-icon button:hover i {
    color: #a71d2a !important;
}
.stat-value {
    font-weight: bold;
    color: #333;
    margin: 0;
}
/* Container Box */
.sidebar-box {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #f8f1f2;
    box-shadow: 0 4px 15px rgba(214, 156, 161, 0.05);
}

/* Tiêu đề Box */
.sidebar-title {
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: #333;
    border-bottom: 2px solid #d69ca1;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* List Danh mục */
.category-list {
    list-style: none;
    padding: 0;
}

    .category-list li {
        border-bottom: 1px dashed #eee;
        padding: 10px 0;
    }

        .category-list li a {
            text-decoration: none;
            color: #555;
            font-size: 14px;
            display: flex;
            justify-content: space-between;
            transition: 0.3s;
        }

            .category-list li a:hover {
                color: #d69ca1;
                padding-left: 5px;
            }

/* Bài viết nhỏ */
.mini-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.mini-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.mini-date {
    font-size: 11px;
    color: #999;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
/* Đảm bảo sidebar có chiều cao tối đa và có thể cuộn nội bộ nếu quá dài */
.sticky-top {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: none; /* Ẩn thanh cuộn trên Firefox */
}

    .sticky-top::-webkit-scrollbar {
        display: none; /* Ẩn thanh cuộn trên Chrome/Safari */
    }
.fb {
    background: #3b5998;
}

.ig {
    background: #e1306c;
}

.tt {
    background: #000;
}

.yt {
    background: #ff0000;
}

.social-icon:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}
.btn-outline-rose {
    border: 1px solid #d69ca1;
    color: #d69ca1;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: bold;
}

    .btn-outline-rose:hover {
        background: #d69ca1;
        color: white;
    }
        .sidebar a:hover {
            color: #f1f1f1;
            background: #d69ca1; /* Màu hồng Rose Beauty khi di chuột */
        }

    .sidebar .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

/* Avatar trong Sidebar */
.user-info-sidebar {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.avatar-sidebar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Lớp phủ đen mờ */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
