.status {
    background-color: white;
    padding: 10px;
    overflow: hidden;
}

.status.active {
    animation-name: color;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

.status.complete {
    background-color: #CCFFC6;
}

@keyframes color {
    0% {
        background-color: #FFF;
    }
    50% {
        background-color: #CCFFC6;
    }
    100% {
        background-color: #FFF;
    }
}

.palette .color {
    float: left;
    width: 40px;
    height: 40px;
    border: 1px solid #AAA;
    border-radius: 5px;
    text-align: center;
    padding: 5px;
    font-weight: 600;
    margin: 5px;
    text-shadow: #FFF 0px 0px 5px;
}

.collection-item > .row {
    margin-bottom:0px;
}

#input-pane {
    overflow: auto;
    max-width: 100%;
    max-height: 500px;
}

#svgContainer {
    justify-content: center;
    align-items: center;
}


/* Tab text color */
.tabs .tab a {
    color: rgba(43, 114, 102, 0.1); /* #2b7266 with opacity */
}

/* Active tab text color */
.tabs .tab a.active {
    color: #2b7266; /* Your teal color */
}

/* Tab text color on hover */
.tabs .tab a:hover {
    color: #2b7266;
}

/* Tab indicator line color */
.tabs .indicator {
    background-color: #2b7266;
}

#loginOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loginForm {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
    width: 100%;
    max-width: 400px;
}

.mainContent {
    display: none;
    max-width: 1400px;
    padding: 2rem;
    margin: 0 auto;
}

.collection-item .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: transparent !important;
}

.collection-item.active .content {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
    background-color: transparent !important;
}

.collection-item.active .content {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
    background-color: transparent !important;
}

.collection-item.active {
    background-color: transparent !important;
}

.collection-item.active .content {
    display: block;
}

.toggle-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    background: transparent !important;
    border: none;
    padding: 5px;
}

.toggle-btn:hover, .toggle-btn:focus, .toggle-btn:active {
    background: transparent !important;
}

.collection-item {
    position: relative;
    padding-right: 40px !important;
}

.collection-item .header {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Limit the height of the textarea and make it scrollable */
#txtKMeansColorRestrictions {
    max-height: 200px; /* Set the maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    resize: none; /* Disable resizing if necessary */
}


#canvasPreviewContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#canvas {
    max-width: 500px;  /* Set your desired width */
    max-height: 500px; /* Set your desired height */
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #ccc;  /* Optional: adds a border around the canvas */
    background-color: #f5f5f5;  /* Optional: adds a light background */
}

.color-manager {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-section {
    margin: 1rem 0;
}

.color-search {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.color-input-container {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.color-picker {
    height: 40px;
    width: 80px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.9rem;
    margin-top: 1rem;
}

.color-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.color-item:hover {
    background: #ececec;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    margin-right: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-value {
    font-size: 0.75rem;
    width: 100px;
}

.color-id {
    background: rgba(0,0,0,0.1);
    padding: 3px;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 50px;
    margin-right: 5px;
}

.delete-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 4px;
    border-radius: 4px;
}

.color-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: rgba(0,0,0,0.1);
}

.delete-btn i {
    font-size: 18px;
    color: #666;
}

.hidden {
    display: none !important;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    /* Add these properties for scrolling */
    max-height: 300px; /* Adjust this value to control the height */
    overflow-y: auto;
    padding-right: 10px; /* Add some padding for the scrollbar */
}

/* Style the scrollbar for Webkit browsers (Chrome, Safari) */
.color-grid::-webkit-scrollbar {
    width: 8px;
}

.color-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.color-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.color-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Style the scrollbar for Firefox */
.color-grid {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}