/* --- Biến màu (CSS Variables) --- */
:root {
    --shopee-orange: #EE4D2D;
    --dark-text: #333;
    --light-text: #666;
    --light-gray: #f0f2f5;
    --border-color: #ddd;
    --success-green: #28a745;
    --error-red: #dc3545;
    --white: #ffffff;
}

/* --- Reset & Body Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
    display: flex;
    flex-direction: column; /* Cho phép footer ở dưới */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* --- Main Container Card --- */
.container {
    background-color: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px Dòng-px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-bottom: 2rem; /* Tạo khoảng cách với footer */
}

/* --- Header & Logo --- */
.main-header {
    margin-bottom: 1.5rem;
}

.logo {
    max-height: 50px; /* Điều chỉnh chiều cao logo */
    width: auto;
}

/* --- Intro Section --- */
.intro-section {
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.5;
    max-width: 450px;
    margin: 0 auto; /* Căn giữa đoạn text */
}

/* --- Search Box --- */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

#searchInput {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--shopee-orange);
    box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.2);
}

#searchButton {
    background-color: var(--shopee-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

#searchButton:hover {
    background-color: #d73a1a;
}

/* --- Result Container & States --- */
#result-container {
    text-align: left;
    min-height: 150px;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.initial-message, .error-message {
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

.error-message {
    color: var(--error-red);
    font-weight: 500;
}

/* --- Loader Spinner --- */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--shopee-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Success Result Styles --- */
.result-header {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.result-list {
    list-style: none;
    padding: 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .status-icon {
    width: 20px;
    height: 20px;
}

.status-icon.success {
    color: var(--success-green);
}

.status-icon.error {
    color: var(--error-red);
}

/* --- Footer --- */
.page-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

.page-footer a {
    color: var(--shopee-orange);
    text-decoration: none;
    font-weight: 500;
}

.page-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 500px) {
    .container {
        padding: 1.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    h1 {
        font-size: 1.2rem;
    }
}

