/* Lake Association Modal Styles */

.lake-management-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 400px;
}

.lake-search-section,
.current-lakes-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.lake-search-section h3,
.current-lakes-section h3 {
    margin: 0 0 0.5rem 0;
    color: #2c5282;
    font-size: 1.1rem;
}

.help-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.search-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.lake-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.lake-search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lake-search-result-item:hover {
    background-color: #f8f9fa;
}

.lake-search-result-item:last-child {
    border-bottom: none;
}

.lake-result-name {
    font-weight: 600;
    color: #2c5282;
    display: block;
    margin-bottom: 0.25rem;
}

.lake-result-wbic {
    font-size: 0.85rem;
    color: #6c757d;
}

.search-status {
    min-height: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.current-lakes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.lake-association-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s;
}

.lake-association-item:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.1);
}

.lake-association-item .lake-info {
    flex: 1;
}

.lake-association-item .lake-name {
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.lake-association-item .lake-wbic {
    font-size: 0.85rem;
    color: #718096;
}

.btn-remove-lake {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-remove-lake:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.loading-lakes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #6c757d;
}

.loading-lakes .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-lakes-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}
