/* Custom styles beyond Bootstrap */

/* Theme switcher styling */
.theme-switcher {
    position: relative;
}

#theme-toggle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

#theme-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* PWA install button styling */
#install-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Drag and drop styling */
.drop-area {
    border: 2px dashed var(--bs-secondary);
    border-radius: 0.25rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--bs-body-bg);
}

.drop-area.highlight {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.05);
}

/* File input styling */
.form-file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Card styling */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Results section styling */
.comparison-stats {
    background-color: rgba(33, 37, 41, 0.03);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* Feature icons */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Loading spinner */
.spinner-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comparison details table */
.table-comparison {
    font-size: 0.9rem;
}

/* Footer styling */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bs-border-color);
}

/* Animation for loading transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Privacy indicator */
.privacy-indicator {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text);
    margin-bottom: 1rem;
}

.privacy-indicator i {
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-list {
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
