body{
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    overflow-x: hidden;
}

html, body{
    height: 100%;
    overflow: hidden;
}

.container{
    display: flex;
    height: 100vh;
}

.sidebar{
    width: 250px;

    background: white;

    padding: 20px;

    border-right: 1px solid #ddd;

    position: sticky;
    top: 0;

    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    transition:
        width 0.3s ease,
        padding 0.3s ease,
        opacity 0.2s ease;
}

.sidebar.hidden{
    width: 0;

    padding-left: 0;
    padding-right: 0;

    border-right: none;

    opacity: 0;
}

.sidebar *{
    white-space: nowrap;
}

.sidebar.hidden *{
    opacity: 0;
}

.sidebar h2{
    margin-top: 0;
}

.filter-group{
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.filter-group label{
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"]{
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.sidebar select{
    width: 100%;

    padding: 10px;

    border-radius: 6px;

    border: 1px solid #ccc;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.sidebar select:focus{
    outline: none;

    border-color: #666;

    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.dataTables_length{
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataTables_length select{
    width: auto;
}

.content {
    flex: 1;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.price-list-info{
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    flex-wrap: wrap;
    gap: 10px;
}

.info-separator {
    color: #d1d5db;
    font-size: 18px;
    font-weight: 300;
}

.catalog-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

#catalogSelect {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: white;
}

.catalog-tab:hover {
    background: #e5e7eb;
}

h1{
    margin: 0;
}

table.dataTable{
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;

    font-size: 14px;
    letter-spacing: 0.2px;
}

.price-font {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
}

.stock-low{
    color: red;
    font-weight: bold;
}

.stock-good{
    color: green;
    font-weight: bold;
}

tbody tr:hover{
    background-color: #f0f7ff !important;
}

img{
    border-radius: 8px;
}

button{
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #222;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

#resetFilters{
    width: 100%;
}

button:hover{
    opacity: 0.9;
}

table{
    width: 100% !important;
}

.topbar{
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
}

#toggleSidebar{
    padding: 10px 14px;
    border: none;
    background: #222;
    color: white;
    font-size: 14px;
    cursor: pointer;

    border-radius: 8px;

    display: flex;
    align-items: center;
    gap: 6px;
}

.table-container{
    padding: 24px;

    background: #ffffff;

    border-radius: 14px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dataTables_wrapper{
    overflow: hidden;
}

.dataTables_length,
.dataTables_filter{
    margin-bottom: 12px;
}

.dataTables_scrollBody{
    border-bottom: 1px solid #eee;
}

.dataTables_scrollHead{
    background: white;
}

.dataTables_scrollBody::-webkit-scrollbar{
    width: 10px;
    height: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb{
    background: #d1d5db;
    border-radius: 999px;
}

.filter-header{
    font-weight: bold;

    cursor: pointer;

    padding: 12px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    user-select: none;
}

.filter-header:hover{
    opacity: 0.7;
}

.filter-header.collapsed .accordion-icon{
    transform: rotate(-90deg);
}

.accordion-icon{
    transition: transform 0.2s ease;
}

.filter-body{
    overflow: hidden;

    max-height: 1000px;

    transition:
        max-height 0.3s ease,
        opacity 0.2s ease;

    opacity: 1;
}

.filter-body.hidden{
    max-height: 0;
    opacity: 0;
}

.page-number-info{
    padding: 6px 12px;

    border-radius: 999px;

    background: #f3f4f6;

    border: 1px solid #e5e7eb;

    font-size: 13px;

    font-weight: 600;

    color: #374151;
}

.dataTables_paginate{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 15px;
}

/* Base pill button */
.dataTables_paginate .paginate_button{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 8px 14px !important;

    border-radius: 999px !important;

    border: 1px solid #e5e7eb !important;

    background: #ffffff !important;

    color: #111827 !important;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none !important;

    cursor: pointer;

    transition: all 0.2s ease;

    min-width: 38px;
}

/* Hover state */
.dataTables_paginate .paginate_button:hover{
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

/* Disabled state */
.dataTables_paginate .paginate_button.disabled{
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f9fafb !important;
}

/* Active page (if used later) */
.dataTables_paginate .paginate_button.current{
    background: #111827 !important;
    color: white !important;
    border-color: #111827 !important;
}

.dataTables_paginate .previous,
.dataTables_paginate .next{
    padding: 8px 16px !important;
}

.stock-good{
    color: #16a34a;
    font-weight: 600;
}

.stock-low{
    color: #f59e0b;
    font-weight: 600;
}

.stock-out{
    color: #dc2626;
    font-weight: 600;
}


/* Mobile Responsive Rules*/
@media (max-width: 768px){

    #toggleSidebar{
        display: block;
    }

    .container{
        flex-direction: column;
    }

    .sidebar{
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .content{
        padding: 15px;
    }

}