.account-container {
    display: grid;
    grid-template-columns: 25% 70%; /* Two columns: Main content + Sidebar/Results */
    gap: 20px;
    height: 100%;;
    padding: 20px;
    width: 100%;
}
.account-sbar {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #222;
    padding: 20px;
    border-radius: 8px;
   
}

.mobile-filters-title {
    display: none;
}	
/* Add proper spacing for nested lists */
.account-sbar ul {
    list-style: none;
    padding-left: 0; /* Reset default browser padding */
}



.filter-active {
    background-color: #fff !important;       /* White background */
    color: #000 !important;                  /* Black text */
    border: 1px solid #ccc;                  /* Optional border */
    font-weight: 600;                        /* Slight emphasis */
    transition: all 0.2s ease-in-out;
}



/* Make sure links remain visible */
.account-sbar a {
    text-decoration: none;
    color: white;
	
	padding: 6%;
}

.account-sbar a:hover {
    color: #FFD700; /* Optional: Highlight on hover */
}
	.filter-button {
	display: block;
	}
@media (max-width: 880px) {
 	.filter-button {
	display: none;
	}   

    .collapsible-sbar.collapsed {
        max-height: 70px;
        margin: 3%;
        overflow: hidden;
    }

    .collapsible-sbar.expanded {
        max-height: 1200px;
        overflow: visible;
    }
    .mobile-filters.collapsible-sbar.expanded {
        display: block;
		width: 98%;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
/* Shown when the user taps 'Show Filters' */
    }
    .mobile-filters-title {
        
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 12px;}

    .mobile-sorters.collapsible-sbar.expanded {
        display: block;
		width: 98%;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
/* Shown when the user taps 'Show Filters' */
    }
	.fa-th  {
        display: none;  /* Hidden by default */
    }
    .account-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        height: 100%;;

        width: 90%;
    }	
	.mobile-filters {width: 90%;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #222;

    border-radius: 8px;}

    #mobile-filters {width: 88%}
    #make,
    #model,
    #engine {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
        width: 90%;
        box-sizing: border-box; /* Prevents width overflow */
        background-color: #1e1e1e;
        color: #fff;
        margin: 1%;
    }
    .search-button {
        background: transparent;
        border: 1px solid #ccc;
        color: #ccc;
        border-radius: 6px;
        margin-bottom: 4px;
        cursor: pointer;
        transition: all 0.2s ease;
    }




    .mobile-filter-drop-btn,
    .mobile-sort-drop-btn {
        margin: 0 auto;
    }
    .mobile-filter-drop-btn h4,
    .mobile-sort-drop-btn h4 {
    font-size: 16px;
    color: #fff;
    background-color: #2d65c4;
    padding: 8px 14px;
    border-radius: 6px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    }

    .mobile-filters-head {
    text-align: center;
    
    }

    #perPageSelect {
        background-color: #1e1e1e;
        color: white;
        border: 1px solid #444;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 14px;
    }}
@media (min-width: 881px) {
    .mobile-filters {
        display:none;
    }
    .search-button {
        background: transparent;
        border: 1px solid #ccc;
        color: #ccc;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

}

	

	
/* === Shared Part Card Styling === */
.part-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* === Grid View === */
.result-details.grid-view-active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
    justify-items: stretch;         /* stretch each card */
    justify-content: start !important; /* stick items to the left */
}


.result-details.grid-view-active .part-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    text-align: center;
}

.part-card img.part-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.part-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.part-name h3, .part-code p, .part-price h3 {
    margin: 6px 0;
    word-break: break-word;
}

/* Ensure all cards are same height */
.result-details.grid-view-active .part-card {
    min-height: 270px;
}

/* === List View === */
.result-details.list-view-active .part-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.result-details.list-view-active .part-image {
    width: 30%;
    height: auto;
    object-fit: contain;
}

.result-details.list-view-active .part-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.admin-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    margin-bottom: 10px;
    
}

.admin-pane .admin-button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 140px;
    text-align: center;
}

.admin-pane .admin-button:hover {
    background-color: #666;
}
.account-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #2a2a2a;
    height: 55px;
    
}
@media (max-width: 880px) {
    .account-topbar {
    display: none; 
    }

    }
#perPageContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    margin-top: 14px;
    padding: 6px 12px;

    border-radius: 6px;
    
}

.per-page-label {
    color: #eee;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}



/* Hide view toggle buttons on small screens */
.hidden-mobile {
    display: none !important;
}


/* Mobile collapsible sidebar */
@media (max-width: 880px) {
    .filter-toggle-header {
        background: #1c1c1c;
        color: white;
        font-size: 14px;
        font-weight: bold;
        max-height: 22px;
        max-width: 98%;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: space-between;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;

    }

    .collapsible-sbar {
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .collapsible-sbar.expanded {
        max-height: 1200px; /* Enough to show filters */
        transition: max-height 0.4s ease-in;
    }
}


    

.sort-section {
    margin-top: 20px;
}

.sort-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: white;
}

.sort-section .filter-item {
    margin-bottom: 15px;
}








.holiday-form {
    margin-top: 20px;
    margin:auto;
    margin-top: 20px;
}
.holiday-label {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn {
    margin-top: 10px;
    padding: 8px 16px;
}
.alert.success {
    color: green;
}






