/* Inventory Management System Custom Styles */
/* === General Reset === */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

/* === Sidebar Styling === */
#sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

#sidebar.collapsed {
    margin-left: -280px;
}

/* Sidebar Brand */
.sidebar-header {
    padding: 1rem;
    background-color: #1a252f;
    text-align: center;
}

.sidebar-brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.sidebar-brand:hover {
    color: #ddd;
}

.sidebar-brand i {
    margin-right: 8px;
}

/* Sidebar Links */
.nav-link {
    color: #ccc;
    padding: 10px 20px;
    display: block;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #1f2d3a;
    color: white;
}

.nav-item i {
    margin-right: 10px;
}

/* === Content Area === */
#content {
    margin-left: 280px;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}

#content.expanded {
    margin-left: 0;
}

/* === Toggle Button === */
.toggle-btn {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 10px;
}

.toggle-btn:focus {
    outline: none;
}

/* === Footer === */
footer {
    margin-top: 30px;
    font-size: 0.9rem;
}

/* === Mobile View Adjustments === */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -280px;
        position: fixed;
    }

    #sidebar.collapsed {
        margin-left: 0;
    }

    #content {
        margin-left: 0;
    }

    #content.expanded {
        margin-left: 280px;
    }

    .toggle-btn {
        display: inline-block;
    }

    .nav.flex-column {
        font-size: 1rem;
    }
}

/* === Alerts === */
.alert {
    font-size: 0.9rem;
}

/* === Messages === */
.messages {
    margin-bottom: 1.5rem;
}





/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fc;
    margin: 0;
    padding: 0;
}

/* Sidebar styles */
#sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1030;
}

#sidebar.collapsed {
    margin-left: -250px;
}

.sidebar-header {
    padding: 1rem;
    background-color: #1a252f;
}

.sidebar-brand {
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #ccc;
    padding: 0.75rem 1rem;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    background-color: #1abc9c;
    color: white;
}

/* Content styles */
#content {
    margin-left: 250px;
    padding: 1rem;
    transition: all 0.3s ease;
}

#content.expanded {
    margin-left: 0;
    width: 100%;
}

/* Toggle button */
.toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    margin: 1rem;
    color: #333;
}

/* Footer */
footer {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Alerts */
.alert {
    margin-bottom: 1rem;
}

/* Responsive layout */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.collapsed {
        margin-left: 0;
    }

    #content {
        margin-left: 0;
    }

    #content.expanded {
        margin-left: 250px;
    }
}



/* Card hover effect */
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Table row hover */
.table-hover tbody tr:hover {
    background-color: #f9f9f9;
}

/* Button hover styles */
.btn-primary:hover {
    background-color: #0d6efd;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #dc3545;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

/* Stock status badge effects */
.stock-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.stock-normal {
    background-color: #d4edda;
    color: #155724;
}

.stock-low {
    background-color: #fff3cd;
    color: #856404;
}

.stock-over {
    background-color: #cce5ff;
    color: #004085;
}

.stock-out {
    background-color: #f8d7da;
    color: #721c24;
}

.product-row {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.product-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}





@media (max-width: 767px) {
    .card, .table-responsive {
        border-radius: 12px;
        overflow-x: auto;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }
}
