/* Custom styles to complement Bootstrap dark theme */
.drop-zone {
    border: 2px dashed var(--bs-secondary);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: rgba(33, 37, 41, 0.6);
}

.drop-zone:hover {
    border-color: var(--bs-info);
    background-color: rgba(33, 37, 41, 0.8);
}

.drag-over {
    border-color: var(--bs-info);
    background-color: rgba(13, 202, 240, 0.1);
}

.hidden-input {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

.result-container {
    margin-top: 2rem;
}

/* Enhanced loading animation styles */
.loading-container {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
    color: var(--bs-info);
    margin-bottom: 0.5rem;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

.loading-subtext {
    color: var(--bs-secondary);
    font-size: 0.9rem;
}

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

@keyframes fadeInOut {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.confidence-bar {
    margin: 1rem 0;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(33, 37, 41, 0.8) 0%, rgba(33, 37, 41, 0.95) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-body {
    color: var(--bs-light);
}

/* Mystical text styling */
.mystical-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.crystal-properties {
    list-style: none;
    padding-left: 0;
}

.crystal-properties li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.crystal-properties li strong {
    color: var(--bs-info);
}

.card-title {
    text-align: center;
    background: linear-gradient(45deg, #e0c3fc 0%, #8ec5fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

h5 {
    color: var(--bs-info);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Add to the end of the existing CSS file */
.alternative-crystals {
    margin-top: 2rem;
}

.alternative-crystals h4 {
    background: linear-gradient(45deg, #b8ceff 0%, #a8bfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.alternative-card {
    height: 100%;
    background: linear-gradient(145deg, rgba(33, 37, 41, 0.6) 0%, rgba(33, 37, 41, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.alternative-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.alternative-title {
    font-size: 1.2rem;
    color: var(--bs-info);
    margin-bottom: 1rem;
    text-align: center;
}

.alternative-differences {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.5;
}

.similar-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

.similar-image:hover {
    transform: scale(1.05);
    border-color: var(--bs-info);
}