* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Time New Roman', serif;
}

.header {
    background-color: #1b325f;
    color: #e9f2e9;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.main-name {
    font-size: 24px;
    font-weight: bold;
    margin-right: 40px;
}

.head-link {
    display: flex;
    list-style: none;
}

.head-link li {
    margin-left: 20px;
}

.head-link a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.head-link a:hover {
    background-color: #9cc4e4;
}

.footer {
    background-color: #1a3a6c;
    color: white;
    padding: 20px 0;
    font-size: 14px;
}

.foot-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

}

.foot-link {
    display: flex;
    list-style: none;

}

.foot-link li {
    margin-right: 20px;
}

.foot-link a {
    color: #e9f2e9;
    text-decoration: none;
}

.foot-link a:hover {
    text-decoration: underline;
}

.foot-text {
    margin-top: 10px;
    font-size: 12px;
    color: #e9f2e9;
    width: 100%;
    text-align: center;
}

.main-info {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 40px;
}

.main-info h1 {
    color: #1b325f;
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
}

form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td {
    padding: 12px 5px;
}

table td:first-child {
    width: 200px;
    text-align: right;
    padding-right: 15px;
    font-weight: bold;
    color: #1b325f;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"] {
    background-color: #1b325f;
    color: white;
}

button[type="submit"]:hover {
    background-color: #0f2248;
}

button[type="reset"] {
    background-color: #ccc;
    color: #333;
}

button[type="reset"]:hover {
    background-color: #bbb;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 0 20px;
    }

    .main-name {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .head-link {
        justify-content: center;
    }

    .head-link li {
        margin: 0 10px;
    }

    .main-info {
        padding: 0 20px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    table td:first-child {
        text-align: left;
        font-weight: normal;
        font-style: italic;
        color: #666;
    }
}

.management-container {
    max-width: 1000px;
    margin: 100px auto;
    padding: 20px;
}

.company-info {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.company-info h2 {
    color: #1b325f;
    margin-bottom: 10px;
}

.product-list {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.product-list h2 {
    color: #1b325f;
    margin-bottom: 20px;
}

.product-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background-color: #f9f9f9;
}

.product-actions button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.product-actions button.delete {
    background-color: #dc3545;
    color: white;
}

.product-actions button.edit {
    background-color: #1b325f;
    color: white;
}

.product-actions button.edit:hover {
    background-color: #0f2248;
}

.product-actions button.delete:hover {
    background-color: #c82333;
}

.create-product-btn {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #1b325f;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

.create-product-btn:hover {
    background-color: #0f2248;
}

.no-products {
    text-align: center;
    color: #666;
    padding: 20px;
}

.status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status.pending {
    background-color: #ffc107;
    color: #333;
}

.status.approved {
    background-color: #28a745;
    color: white;
}

.status.delist {
    background-color: #dc3545;
    color: white;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    color: #1b325f;
    margin-bottom: 20px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input,
.login-form button {
    margin: 10px 0;
    padding: 12px;
    font-size: 16px;
}

.login-error {
    color: red;
    margin-top: 10px;
    display: none;
}

.edit-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.edit-container h1 {
    color: #1b325f;
    margin-bottom: 20px;
    text-align: center;
}

.edit-form {
    display: flex;
    flex-direction: column;
}

.edit-form input,
.edit-form select,
.edit-form textarea,
.edit-form button {
    margin: 10px 0;
    padding: 12px;
    font-size: 16px;
}

.edit-form table {
    width: 100%;
    border-collapse: collapse;
}

.edit-form td {
    padding: 12px 5px;
}

.edit-form td:first-child {
    width: 200px;
    text-align: right;
    padding-right: 15px;
    font-weight: bold;
    color: #1b325f;
}

.edit-form textarea {
    width: 100%;
    resize: vertical;
}

.edit-form .button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.edit-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.edit-form button[type="submit"] {
    background-color: #1b325f;
    color: white;
}

.edit-form button[type="submit"]:hover {
    background-color: #0f2248;
}

.edit-form button[type="reset"] {
    background-color: #ccc;
    color: #333;
}

.edit-form button[type="reset"]:hover {
    background-color: #bbb;
}

.product-detail-container {
    max-width: 1000px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
}

.product-header {
    margin-bottom: 30px;
}

.product-header h1 {
    color: #1b325f;
    font-size: 28px;
}

.product-code {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: bold;
    color: #1b325f;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    color: #1b325f;
    margin-bottom: 10px;
}

.product-description p {
    line-height: 1.6;
}

.status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.status.pending {
    background-color: #ffc107;
    color: #333;
}

.status.approved {
    background-color: #28a745;
    color: white;
}

.status.delist {
    background-color: #dc3545;
    color: white;
}

.back-button {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #1b325f;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #1a3a6c;
}

.product-detail-container {
    max-width: 1000px;
    margin: 120px auto 50px;
    padding: 0 20px;
}
