/* Reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}

/* Sidebar styling */
.sidebar {
    width: 250px;
    background-color: #2d3b48;
    color: white;
    padding: 20px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 20px;
}

.sidebar-nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    display: block;
    padding: 10px;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover {
    background-color: #4f5a67;
}

/* Main content styling */
.main-content {
    flex: 1;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.header-left h1 {
    font-size: 1.5rem;
}

.header-right input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 200px;
}

.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3b48;
}

/* Activity table styling */
.activity-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.activity-table th, .activity-table td {
    padding: 15px;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
}

.activity-table th {
    background-color: #f5f5f5;
}

.activity-table tr:hover {
    background-color: #f7f7f7;
}

.activity-table td {
    color: #666;
}







.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
}

form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

/* Custom styles for buttons */
.btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

/* Edit Button */
.btn-primary {
    background-color: #007bff;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

/* Delete Button */
.btn-danger {
    background-color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

/* Add New Product Button */
.btn-success {
    background-color: #28a745;
    border: 1px solid #28a745;
    font-size: 16px;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: scale(1.05);
}

/* Button icon spacing */
.btn i {
    margin-right: 8px;
}

/* Button size adjustments */
.btn-sm {
    font-size: 12px;
    padding: 5px 10px;
}

.btn-lg {
    font-size: 18px;
    padding: 12px 20px;
}

/* Custom Badge for Status */
.badge-success {
    background-color: #28a745;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.badge-danger {
    background-color: #dc3545;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
#search-input, #category-select {
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 10px;
}

/* Custom styles for the product table */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

.table-bordered {
    border: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.table td .badge {
    font-size: 14px;
    padding: 5px 10px;
}

/* For larger tables with scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

