/*
 * Tệp này dành cho các tùy chỉnh CSS nhỏ không tiện dùng Tailwind.
 * Ví dụ: một số hiệu ứng đặc biệt hoặc ghi đè style.
*/

/* Thêm hiệu ứng chuyển động nhẹ cho các thẻ sản phẩm */
.product-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Kiểu chữ cho tiêu đề chính */
.main-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
}
    body {
        background-image: url('https://phongvu.vn/cong-nghe/wp-content/uploads/2020/11/119234579_169457918065236_755533166268046471_n-1.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        color: #fff;
    }
    
   /* --- Cấu trúc layout để đẩy footer xuống dưới --- */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main.container {
    flex-grow: 1;
}

/* --- CSS CHO FOOTER MỚI --- */

.new-footer {
    background-color: #16213e; /* Nền footer */
    color: #a0a0a0; /* Màu chữ mặc định */
    border-top: 1px solid #4a4a6a;
}

.new-footer .mid-footer {
    background-color: #1a1a2e; /* Nền phần giữa footer */
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.new-footer h4.title-menu {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: #e0e0e0; /* Màu chữ sáng */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4a4a6a;
    position: relative;
}

.new-footer h4.title-menu::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: #e94560; /* Màu nhấn phụ */
}

.new-footer .list-menu li a {
    color: #a0a0a0;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.new-footer .list-menu li a:hover {
    color: #e94560;
    padding-left: 5px;
}

.new-footer .des_foo {
    color: #a0a0a0;
}

.new-footer .des_foo strong {
    color: #e0e0e0;
}

.new-footer .copyright {
    background-color: #16213e;
    border-top: 1px solid #4a4a6a;
    color: #a0a0a0;
}

.new-footer .copyright b {
    color: #e0e0e0;
}

/* Placeholder cho icon mạng xã hội */
.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2a2a4a;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.social-icon:hover {
    background-color: #e94560;
}

/* --- CSS CHO TRANG QUẢN TRỊ MỚI --- */

.admin-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.admin-nav-wrapper {
    border-bottom: 1px solid #4a4a6a;
    margin-bottom: 2rem;
}

.admin-nav {
    display: flex;
    gap: 1.5rem; /* 24px */
}

.admin-nav a {
    padding: 1rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a0a0a0;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.admin-nav a:hover {
    color: #e0e0e0;
}

.admin-nav a.active {
    color: #e94560;
    border-color: #e94560;
}

.admin-content h1 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    color: #e0e0e0;
}

/* Styling cho các khối nội dung trong admin */
.admin-card {
    background-color: #16213e;
    border: 1px solid #4a4a6a;
    padding: 1.5rem; /* 24px */
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Styling cho bảng */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: #2a2a4a;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem; /* 12px 16px */
    text-align: left;
    border-bottom: 1px solid #4a4a6a;
}

.admin-table th {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    color: #a0a0a0;
}

.admin-table a {
    color: #5352ed;
    font-weight: 500;
    transition: color 0.3s ease;
}

.admin-table a:hover {
    color: #8b8aff;
}
.admin-table a.text-red-500 {
    color: #e94560;
}
.admin-table a.text-red-500:hover {
    color: #ff7c91;
}

/* Styling cho form */
.admin-form label {
    color: #a0a0a0;
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    background-color: #2a2a4a;
    border: 1px solid #4a4a6a;
    color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3);
    outline: none;
}

/* Nút bấm trong admin */
.admin-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}
.admin-btn:hover {
    transform: translateY(-2px);
}
.admin-btn-primary {
    background-color: #e94560;
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}
.admin-btn-secondary {
    background-color: #4a4a6a;
    color: #e0e0e0;
}
.admin-btn-green {
    background-color: #32de84;
    color: #16213e;
    box-shadow: 0 4px 15px rgba(50, 222, 132, 0.2);
}
