/* Global */
body {
    background-color: #ffffff;
}

.hidden {
    display: none;
}

/* base.html.twig */
.navbar-edubricks {
    background: linear-gradient(180deg, #2E3192, #6669B0);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.container-main {
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* index.html.twig */
.lego-card .card {
    border-color: #c1c7e3;
    background-color: #DBDBF4;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.lego-card .card-img-top {
    height: 180px;
    object-fit: contain;
    background-color: #ffffff;
}

.lego-card .card-title {
    color: #2E3192;
}

.lego-card .list-unstyled {
    color: #343a40;
}

.card-img-container {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.card-img-responsive {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.piece-name-title {
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    margin-right: 1rem;
    height: 85vh;
    max-height: 750px;
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.sidebar-header h5 {
    color: #2E3192;
    margin-bottom: 0;
    font-weight: 600;
}

.list-group {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.5rem;
}

.list-group::-webkit-scrollbar {
    width: 6px;
}

.list-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list-group::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.list-group::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.category-filter {
    border: none;
    border-radius: 0.5rem !important;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem;
    text-align: left;
    background-color: transparent;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.category-filter:hover {
    background-color: #e9ecef;
    transform: translateX(2px);
}

.category-filter.active {
    background: linear-gradient(180deg, #2E3192, #6669B0);
    color: white;
}

.category-count {
    background-color: #6c757d;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.category-filter.active .category-count {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-name {
    flex-grow: 1;
    text-align: left;
}

@media (max-width: 768px) {
    .sidebar {
        margin-right: 0;
        margin-bottom: 1rem;
        position: relative;
        top: auto;
    }
}

/* Modals */
.modal-header-edubricks {
    background: linear-gradient(180deg, #2E3192, #6669B0);
    color: white;
}

.modal-content-edubricks {
    border-radius: 1rem;
    overflow: hidden;
}

/* _weegschaal_modal.html.twig */
.calculation-result {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#calculationResult div {
    margin: 0.25rem 0;
    text-align: center;
}

.piece-info {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.piece-info.text-info {
    border-color: #b6d7ff;
    background-color: #e7f3ff;
}

.piece-info.text-danger {
    border-color: #f1aeb5;
    background-color: #f8d7da;
}

.piece-info.text-success {
    border-color: #c3e6cb;
    background-color: #d4edda;
}

.calculation-result.text-success {
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
}

.piece-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.piece-image-container img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 100px;
    max-height: 100px;
}

.calculation-result .piece-image-container img {
    max-width: 80px;
    max-height: 80px;
}

/* _import_modal.html.twig */
.table-col-photo {
    width: 80px;
}

.table-col-id {
    width: 100px;
}

.table-col-weight {
    width: 120px;
}

.table-col-total-weight {
    width: 130px;
}

.order-item-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
}

.order-item-placeholder {
    width: 50px;
    height: 50px;
}

.order-item-name {
    max-width: 200px;
}

/* _delete_modal.html.twig */
.delete-modal-body {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.delete-warning-icon {
    font-size: 3rem;
}

/* login.html.twig */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.login-card {
    border-radius: 1rem;
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(180deg, #2E3192, #6669B0);
    color: white;
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
}

.login-form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form-control:focus {
    border-color: #6669B0;
    box-shadow: 0 0 0 0.2rem rgba(102, 105, 176, 0.25);
}

.login-btn-primary {
    background: linear-gradient(180deg, #2E3192, #6669B0);
    border: none;
    border-radius: 0.5rem;
}

.login-btn-primary:hover {
    background: linear-gradient(180deg, #252a7a, #5a5d9a);
}

.login-alert {
    border-radius: 0.5rem;
    border: none;
}
