/* Main container styles */
.ckan-taxo-clicense-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ckan-taxo-clicense-container h3 {
    color: #1e73be; /* Blue theme color */
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

/* Form controls */
#ckan-taxo-clicense-form {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Select all container */
.ckan-taxo-select-all-container {
    margin-bottom: 15px;
}

.ckan-taxo-select-all-container label {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.ckan-taxo-select-all-container input[type="checkbox"] {
    margin-right: 8px;
}

/* Search box */
.ckan-taxo-search-container {
    margin-bottom: 15px;
}

#ckan-taxo-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#ckan-taxo-search:focus {
    outline: none;
    border-color: #1e73be; /* Blue theme color */
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2);
}

/* Terms container */
.ckan-taxo-terms-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #fff;
}

/* Scrollbar styling */
.ckan-taxo-terms-container::-webkit-scrollbar {
    width: 8px;
}

.ckan-taxo-terms-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ckan-taxo-terms-container::-webkit-scrollbar-thumb {
    background: #1e73be; /* Blue theme color */
    border-radius: 4px;
}

.ckan-taxo-terms-container::-webkit-scrollbar-thumb:hover {
    background: #155591;
}

/* Term items */
.ckan-taxo-term-item {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f1f1;
}

.ckan-taxo-term-item:last-child {
    border-bottom: none;
}

.ckan-taxo-term-item:hover {
    background-color: #f7f7f7;
}

.ckan-taxo-term-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.ckan-taxo-term-item input[type="checkbox"] {
    margin-right: 8px;
    min-width: 16px;
    height: 16px;
}

/* Submit button container */
.ckan-taxo-submit-container {
    display: flex;
    align-items: center;
}

#ckan-taxo-submit {
    background-color: #1e73be; /* Blue theme color */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#ckan-taxo-submit:hover {
    background-color: #155591;
}

#ckan-taxo-submit:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.4);
}

/* Spinner */
.ckan-taxo-spinner {
    display: none;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff8c00; /* Orange theme color */
    animation: spin 1s ease-in-out infinite;
}

.ckan-taxo-spinner.active {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message container */
.ckan-taxo-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.ckan-taxo-message.success {
    background-color: #e7f4e4;
    color: #2d7d32;
    border: 1px solid #c5e1c5;
}

.ckan-taxo-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ckan-taxo-clicense-container {
        margin: 15px 0;
    }
    
    #ckan-taxo-clicense-form {
        padding: 15px;
    }
    
    .ckan-taxo-terms-container {
        max-height: 200px;
    }
    
    #ckan-taxo-submit {
        padding: 8px 16px;
        font-size: 13px;
    }
}