.dog-analyzer-app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hidden {
    display: none !important;
}

.upload-area {
    border: 2px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    border-radius: 10px;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #2196f3;
    background-color: #e3f2fd;
}

.upload-area.dragover {
    background-color: #e1f5fe;
    border-color: #2196f3;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.2s ease;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.preview-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #dc3545;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.preview-item .remove-btn:hover {
    background: #dc3545;
    color: #fff;
}

#analyzeBtn {
    display: none;
    margin: 20px 0;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
    min-width: 200px;
}

#analyzeBtn:hover {
    background-color: #005177;
}

#analyzeBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breed-percentage {
    margin: 15px 0;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.breed-percentage:hover {
    transform: translateX(5px);
}

.progress-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

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

.error-message {
    color: #dc3545;
    margin: 10px 0;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.breed-message {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 15px 0;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dog-analyzer-app {
        padding: 15px;
    }

    .preview-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .preview-item img {
        height: 150px;
    }

    #analyzeBtn {
        width: 100%;
        min-width: unset;
    }
} 