/* Main Container */
.identifier-app {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Button Container */
.identifier-button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 20px auto;
    padding: 0;
}

/* Button Styling */
.identifier-button {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.identifier-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.identifier-button:active {
    transform: translateY(0);
}

.identifier-cancel-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Camera Container */
.identifier-camera-container {
    width: 100%;
    max-width: 640px;
    margin: 20px auto;
    position: relative;
}

.identifier-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.identifier-loading {
    text-align: center;
    padding: 30px;
}

.identifier-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: identifier-spin 1s linear infinite;
}

@keyframes identifier-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Card */
.identifier-result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.identifier-image-wrapper {
    width: 100%;
    background: #f8f9fa;
    text-align: center;
}

.identifier-result-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.identifier-content {
    padding: 24px;
}

/* Result Header */
.identifier-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.identifier-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.identifier-scientific-name {
    color: #6b7280;
    font-style: italic;
    font-size: 18px;
    margin: 0;
}

/* Sections */
.identifier-section {
    margin-bottom: 24px;
}

.identifier-section:last-child {
    margin-bottom: 0;
}

.identifier-section-title {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #10b981;
}

.identifier-description {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* Details Grid */
.identifier-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.identifier-detail-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    transition: transform 0.2s ease;
}

.identifier-detail-item:hover {
    transform: translateX(4px);
}

.identifier-detail-title {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.identifier-detail-text {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Error State */
.identifier-error {
    background: #fee2e2;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    color: #dc2626;
}

.identifier-error-details {
    color: #991b1b;
    font-size: 14px;
    margin-top: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .identifier-app {
        padding: 15px;
        margin: 10px;
    }
    
    .identifier-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .identifier-content {
        padding: 20px;
    }
    
    .identifier-title {
        font-size: 20px;
    }
    
    .identifier-section-title {
        font-size: 18px;
    }
}

/* Small Screen Adjustments */
@media (max-width: 480px) {
    .identifier-app {
        padding: 10px;
    }
    
    .identifier-content {
        padding: 15px;
    }
    
    .identifier-detail-item {
        padding: 12px;
    }
}