/* Emergency CSS fixes for UI/UX issues */

/* Khắc phục menu di động */
#mobile-menu {
    transition: transform 0.3s ease-in-out !important;
    z-index: 9999 !important;
    background-color: #fff !important;
    overflow-y: auto !important;
}

#mobile-menu.open {
    transform: translateX(0) !important;
    right: 0 !important;
}

.mobile-menu-toggle {
    z-index: 999 !important;
    cursor: pointer !important;
}

/* Fix cho header và navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    background-color: #fff !important;
}

.nav-link {
    color: #333 !important;
    transition: color 0.2s ease !important;
}

.nav-link:hover, .nav-link.active {
    color: #cc0000 !important;
}

/* Fix cho form và buttons */
.btn, button[type="submit"], input[type="submit"] {
    transition: all 0.3s ease !important;
    background-color: #cc0000 !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 1.5rem !important;
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background-color: #aa0000 !important;
}

/* Fix cho container spacing */
.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Fix cho text styles */
h1, h2, h3, h4, h5, h6 {
    color: #333 !important;
    margin-bottom: 1rem !important;
}

/* Fix cho responsive issues */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #mobile-menu {
        width: 80% !important;
    }
}

/* Force Tailwind display classes để khắc phục lỗi hiển thị */
.md\:flex {
    display: flex !important;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex !important;
    }
    
    .md\:hidden {
        display: none !important;
    }
    
    .md\:block {
        display: block !important;
    }

    .hidden.md\:flex {
        display: flex !important;
    }
}

/* Đảm bảo header luôn hiển thị đúng */
header, nav.bg-white {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: relative !important;
    z-index: 50 !important;
} 