/* products.css */

/* Reset styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: #343a40;
    color: #fff;
    width: 250px;
    height: 100%;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.sidebar-header h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
}

.sidebar-menu {
    list-style: none;
    padding-left: 0;
}

.sidebar-menu li {
    margin-bottom: 20px;
}

.sidebar-menu li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #dcdfe1;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar-menu li a:hover {
    background-color: #495057;
    color: #fff;
}

/* Main content */
.main-content {
    margin-left: -250px;
    padding: 30px;
    flex: 1;
}

/* Product form */
h1, h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

form {
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 40px;
}

form input, form select, form button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

/* Table styling */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    background-color: #007bff;
    color: #fff;
}

table td a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s;
}

table td a:hover {
    color: #0056b3;
}

/* Confirm delete popup */
a:hover {
    color: red;
}
