/* Sky Atlas Page Styles */
.sky-atlas-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #1a202c; /* Dark background for better contrast */
}

.sky-atlas-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #2d3748;
    border-bottom: 1px solid #4a5568;
}

.sky-atlas-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.sky-atlas-controls {
    display: flex;
    gap: 0.5rem;
}

.sky-atlas-search {
    position: relative;
    min-width: 300px;
}

.sky-atlas-search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.sky-atlas-search-input:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 1px #63b3ed;
}

.sky-atlas-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sky-atlas-search-result {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sky-atlas-search-result:hover {
    background-color: #4a5568;
}

.sky-atlas-search-result-name {
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.sky-atlas-search-result-details {
    font-size: 0.75rem;
    color: #a0aec0;
}

.sky-atlas-viewer {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #1a202c;
}

.sky-atlas-info-panel {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    z-index: 10;
    font-size: 0.875rem;
    max-width: 300px;
}

.sky-atlas-info-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.sky-atlas-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.75rem;
}

.sky-atlas-info-label {
    color: #a0aec0;
    text-align: right;
}

.sky-atlas-info-value {
    color: #e2e8f0;
}

.sky-atlas-toolbar-buttons {
    display: flex;
    gap: 0.5rem;
}

.sky-atlas-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #4a5568;
    color: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sky-atlas-button:hover {
    background-color: #718096;
}

.sky-atlas-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #63b3ed;
}

.sky-atlas-button.active {
    background-color: #4299e1;
    color: white;
}

.sky-atlas-button i {
    font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sky-atlas-toolbar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .sky-atlas-search {
        min-width: 100%;
    }
    
    .sky-atlas-controls {
        flex-wrap: wrap;
    }
    
    .sky-atlas-info-panel {
        max-width: calc(100% - 2rem);
    }
}

/* Dark theme overrides for Aladin Lite */
.aladin-imageTile {
    filter: brightness(0.9) contrast(1.1);
}

/* FOV overlay styling */
.fov-overlay {
    stroke: #48bb78;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: rgba(72, 187, 120, 0.1);
    pointer-events: none;
}

/* Loading spinner */
.sky-atlas-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.sky-atlas-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #4299e1;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.sky-atlas-error {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(229, 62, 62, 0.9);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    max-width: 300px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sky-atlas-error-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
