body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    width: 100%;
    height: 60px;
    background: #D9282E;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
}

.header .logo {
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info span {
    font-size: 16px;
}

.sidebar {
    width: 250px;
    background: #D9282E;
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 60px;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.menu li {
    margin: 15px 0;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.menu a:hover {
    text-decoration: underline;
}

.content {
    margin-left: 270px;
    margin-top: 80px;
    padding: 30px;
    flex-grow: 1;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.product-table th,
.product-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.product-table th {
    background: #D9282E;
    color: white;
}

.toggle-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        top: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .toggle-btn {
        display: block;
    }

    .content {
        margin-left: 0;
        margin-top: 80px;
    }

    .overlay.active {
        display: block;
    }
}

/* Thêm sản phẩm */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
    height: 80px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-cancel {
    background: #F44336;
    color: white;
}

.form-container {
    width: 60%;
}

.center-block-inline {
    display: flex;
    justify-content: center;
}

textarea,
input,
select {
    outline: none;
    border: none;
}

.category-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.category-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.category-actions {
    text-align: right;
    margin-bottom: 10px;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.category-table th,
.category-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.category-table th {
    background: #D9282E;
    color: white;
    text-align: center;
}

.category-table tbody tr:hover {
    background: #f9f9f9;
}

.category-table td {
    text-align: center;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    background: #FFC107;
    color: white;
}

.btn-delete {
    background: #F44336;
    color: white;
}

.btn-add {
    background: #007bff;
    color: white;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {

    .category-table th,
    .category-table td {
        padding: 10px;
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    background: #f1f1f1;
    color: #333;
    border-radius: 5px;
}

.pagination a.active {
    background: #007bff;
    color: white;
}

.pagination a:hover {
    background: #ddd;
}

@import url(https://fonts.googleapis.com/css?family=Roboto:300);

.login-page {
    width: 360px;
    padding: 8% 0 0;
    margin: auto;
}

.form {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    max-width: 360px;
    margin: 0 auto 100px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.form input {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}

.form button {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    outline: 0;
    background: #D9282E;
    width: 100%;
    border: 0;
    padding: 15px;
    color: #FFFFFF;
    font-size: 14px;
    -webkit-transition: all 0.3 ease;
    transition: all 0.3 ease;
    cursor: pointer;
}

.form button:hover,
.form button:active,
.form button:focus {
    background: #D9282E;
}

.form .message {
    margin: 15px 0 0;
    color: #b3b3b3;
    font-size: 12px;
}

.form .message a {
    color: #D9282E;
    text-decoration: none;
}

.form .register-form {
    display: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 300px;
    margin: 0 auto;
}

.container:before,
.container:after {
    content: "";
    display: block;
    clear: both;
}

.container .info {
    margin: 50px auto;
    text-align: center;
}

.container .info h1 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 36px;
    font-weight: 300;
    color: #1a1a1a;
}

.container .info span {
    color: #4d4d4d;
    font-size: 12px;
}

.container .info span a {
    color: #000000;
    text-decoration: none;
}

.container .info span .fa {
    color: #D9282E;
}