/* admin-style.css */

.admin-container {
    padding-top: 30px;
}

.admin-container h2 {
    text-align: left;
    margin-bottom: 15px;
}

.admin-container h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

#admin-login-section {
    max-width: 400px;
    margin-bottom: 30px;
}

#admin-login-section label {
    display: block;
    margin-bottom: 5px;
}

#admin-login-section input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#admin-login-section button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#admin-login-section button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-top: 5px;
}

#product-list ul {
    list-style: none;
    padding: 0;
}

#product-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#product-list li:last-child {
    border-bottom: none;
}

#product-list .product-actions button {
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

#product-list .product-actions .edit-button {
    background-color: #ffc107; /* Yellow */
    color: #333;
}

#product-list .product-actions .delete-button {
    background-color: #dc3545; /* Red */
    color: white;
}

#add-edit-product form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#add-edit-product form input[type="text"],
#add-edit-product form textarea,
#add-edit-product form select {
    width: calc(100% - 20px); /* Adjust width for padding */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width calculation */
}

#add-edit-product form textarea {
    resize: vertical; /* Allow vertical resizing */
}

#add-edit-product form button {
    padding: 10px 15px;
    background-color: #28a745; /* Green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

#add-edit-product form button:hover {
    background-color: #218838; /* Darker Green */
}

#page-design-edit label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#page-design-edit input[type="text"],
#page-design-edit textarea {
    width: calc(100% - 20px); /* Adjust width for padding */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width calculation */
}

#page-design-edit textarea {
    resize: vertical; /* Allow vertical resizing */
}


#page-design-edit button {
    padding: 10px 15px;
    background-color: #007bff; /* Blue */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

#page-design-edit button:hover {
    background-color: #0056b3; /* Darker Blue */
}