* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
body {
    background-color: #f4f4f4;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    background-color: #1a252f;
    text-align: center;
    border-bottom: 1px solid #3d556e;
}
.sidebar-header h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}
.sidebar-header p {
    color: #8aa4be;
    font-size: 12px;
}
.nav-menu {
    list-style: none;
    padding: 10px 0;
}
.nav-item {
    margin: 5px 0;
}
.nav-link {
    display: flex;
    align-items: center;
    color: #b8c7ce;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s;
}
.nav-link span {
    margin-left: 10px;
}
.nav-link:hover, .nav-link.active {
    background-color: #34495e;
    color: white;
    border-left: 4px solid #3498db;
}
.nav-link i {
    width: 20px;
    text-align: center;
}
.logout-section {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #3d556e;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    transition: all 0.3s;
}
.main-header {
    background-color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header h1 {
    color: #333;
    font-size: 24px;
}
.user-info {
    display: flex;
    align-items: center;
}
.user-info span {
    margin-right: 10px;
    color: #555;
}
.toggle-sidebar {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}

.content-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.content-section {
    display: none;
}
.content-section.active {
    display: block;
}

form {
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #1a252f;
}

.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
th {
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
.low-stock {
    background-color: #ffcccc;
}
.action-buttons {
    display: flex;
    gap: 5px;
}
.edit-btn {
    background-color: #3498db;
}
.delete-btn {
    background-color: #e74c3c;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stats-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    border-left: 4px solid #3498db;
}
.stats-card h3 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}
.stats-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}
.notifications {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.low-stock {
    border-left: 4px solid #e74c3c;
    background-color: #fff5f5;
}
/* Search and Filter Styles */
.search-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.search-container {
    flex: 1;
    min-width: 200px;
    display: flex;
}
.search-container input {
    flex: 1;
    margin-right: 10px;
}
.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-container select {
    min-width: 150px;
}
/* Utility Classes */
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}
.badge-new {
    background-color: #2ecc71;
    color: white;
}
.badge-used {
    background-color: #f39c12;
    color: white;
}
.loading {
    text-align: center;
    padding: 20px;
}
.error-message {
    color: #e74c3c;
    padding: 10px;
    margin: 10px 0;
    background-color: #ffeaea;
    border-left: 4px solid #e74c3c;
}
.success-message {
    color: #2ecc71;
    padding: 10px;
    margin: 10px 0;
    background-color: #e8f8f5;
    border-left: 4px solid #2ecc71;
}


@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
        transition: all 0.3s;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .toggle-sidebar {
        display: block;
    }
    .sidebar.active {
        width: 250px;
    }
    .main-content.shifted {
        margin-left: 250px;
    }
}