/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #F5F5F5;
}

/* Wrapper chính */
#itdict_wrapper {
    max-width: 1200px; /* Giới hạn chiều rộng tối đa */
    min-height: 100vh;
    margin: 0 auto; /* Căn giữa */
    background-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Thêm bóng nhẹ */
    position: relative;
}

/* Banner */
#itdict_banner {
    padding: 15px 20px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    text-align: center; /* Căn giữa nội dung */
}

#itdict_logo {
    display: inline-block; /* Đảm bảo logo và chữ nằm cùng hàng */
}

#itdict_logo a {
    text-decoration: none; /* Xóa gạch chân liên kết */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Khoảng cách giữa logo và chữ */
}

#itdict_logo img {
    width: 50px;
    height: auto;
}

#itdict_logo p {
    font-size: 2em; /* Tăng kích thước chữ */
    font-weight: bold;
    color: #9B3C3F;
    letter-spacing: 1px; /* Thêm khoảng cách chữ */
    text-transform: uppercase; /* Chữ in hoa */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Thêm bóng chữ nhẹ để nổi bật */
}

/* Thanh tìm kiếm */
#itdict_search {
    background-color: #00A0C6;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

#itdict_search form {
    width: 100%;
    display: flex;
    align-items: center;
}

#itdict_searchtext {
    flex-grow: 1; /* Chiếm toàn bộ không gian còn lại */
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
    outline: none;
}

#itdict_searchtext:focus {
    border: 2px solid #007B9A;
}

#itdict_searchbutton {
    height: 40px;
}

.itdict_bsubmit {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: #007B9A;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.itdict_bsubmit:hover {
    background-color: #005F7A;
}

/* Nội dung chính */
#itdict_maincontent {
    padding: 20px;
    background-color: #F5F5F5;
    min-height: calc(100vh - 150px); /* Đảm bảo đủ không gian cho footer */
}

.itdict_content {
    width: 100%;
}

.itdic_list {
    list-style: none;
    padding: 0;
}

.itdict_list_items {
    list-style: none;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.2s ease;
}

.itdict_list_items:hover {
    background-color: #F9F9F9;
}

.itdict_word {
    color: #12AA24;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 5px;
}

.itdict_mean {
    color: #333333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.itdict_category {
    color: #666666;
    font-size: 0.9em;
    font-style: italic;
}

/* Footer */
#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: #00A0C6;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #007B9A;
}

#footer p {
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    #itdict_wrapper {
        margin: 0;
        box-shadow: none; /* Xóa bóng trên mobile */
    }

    #itdict_banner {
        padding: 10px;
    }

    #itdict_logo p {
        font-size: 1.5em;
    }

    #itdict_logo img {
        width: 40px;
    }

    #itdict_search {
        padding: 10px;
    }

    #itdict_searchtext {
        height: 36px;
    }

    .itdict_bsubmit {
        height: 36px;
        padding: 0 15px;
    }

    #itdict_maincontent {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #itdict_logo p {
        font-size: 1.2em;
    }

    #itdict_word {
        font-size: 1.2em;
    }

    #itdict_mean {
        font-size: 1em;
    }

    #itdict_category {
        font-size: 0.85em;
    }

    #footer {
        height: 40px;
    }

    #footer p {
        font-size: 0.9em;
    }
}