/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 1rem;
}

/* Loading Spinner Enhancement */
#loading-process {
    text-align: center;
    padding: 2rem;
}

#loading-process .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #007bff;
}

#loading-process p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Main Container Styling */
#collection-visualize-workarea.container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    max-width: 1400px;
    margin: auto;
}

/* Header Controls Container */
#collection-visualize-workarea > .container:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

/* General Select and Button Styling */
select, .btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff; /* Default background */
}

select:focus, .btn:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Specific Button Colors */
.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #343a40;
    border-color: #ced4da;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Work Area Layout */
#workarea {
    align-items: flex-start;
    gap: 1.5rem;
}

/* Canvas Styling */
#canvas {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    height: auto;
}

/* Toolbar for Canvas Actions */
#workarea > div {
    min-width: 200px;
}

/* Legend Styling */
#legend {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#legend p {
    margin: 0 0 0.5rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Utility Classes from Bootstrap that we might need */
.d-none {
    display: none !important;
}
.m-1 {
    margin: 0.25rem !important;
}
.p-1 {
    padding: 0.25rem !important;
}
.p-2 {
    padding: 0.5rem !important;
}
.d-flex {
    display: flex !important;
}
.flex-column {
    flex-direction: column !important;
}
.justify-content-start {
    justify-content: flex-start !important;
}
.justify-content-center {
    justify-content: center !important;
}
.align-items-center {
    align-items: center !important;
}
.min-vh-100 {
    min-height: 100vh !important;
}
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite spinner-border;
    animation: .75s linear infinite spinner-border;
}
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
