/* Additional Configurator Styles */
/* Most styles are inline in index.php, but these are extras */

/* Smooth transitions */
.module-item,
.selected-module,
.btn {
    transition: all 0.3s ease;
}

/* Loading animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Notification slide-in */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Module hover effects */
.module-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Accordion Styles */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
    border-bottom: 2px solid #15635E;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #15635E;
}

.accordion-header:hover {
    background-color: #f0f7f6;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-content {
    transition: all 0.3s ease;
}

/* Accordion Arrow Animation */
.group-accordion summary .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.group-accordion[open] summary .arrow {
    transform: rotate(180deg);
}

/* Hide default summary marker */
.group-accordion summary::-webkit-details-marker {
    display: none;
}

.group-accordion summary::marker {
    content: '';
}

/* Material Toolbar */
.material-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.material-toolbar div {
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.material-toolbar div:hover {
    background: #f5f5f5;
}

.material-toolbar div.active {
    background: #15635E;
    color: white;
    border-color: #15635E;
}

/* Selected module highlight */
.module-item.added {
    animation: addedPulse 0.5s ease;
}

@keyframes addedPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Scrollbar styling */
#module-library::-webkit-scrollbar,
#build-summary::-webkit-scrollbar {
    width: 8px;
}

#module-library::-webkit-scrollbar-track,
#build-summary::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#module-library::-webkit-scrollbar-thumb,
#build-summary::-webkit-scrollbar-thumb {
    background: #15635E;
    border-radius: 4px;
}

#module-library::-webkit-scrollbar-thumb:hover,
#build-summary::-webkit-scrollbar-thumb:hover {
    background: #0d4a46;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .module-item {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print styles (for sharing configs) */
@media print {

    #module-library,
    #header-actions {
        display: none;
    }

    #viewport {
        page-break-inside: avoid;
    }
}