/* Additional custom styles for the biology lab simulation */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Tab Navigation */
.tab-button {
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: #10b981;
    color: #10b981;
    background-color: #f0fdf4;
}

/* Section Management */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Object Selection */
.object-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.object-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.object-btn.selected {
    border-color: #10b981;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 2px #10b981;
}

/* Sample Items */
.sample-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sample-item:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sample-item.measured {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.sample-item .sample-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.sample-item .sample-size {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* Leaves styles */
.sample-item.leaves .sample-icon {
    color: #059669;
}

.sample-item.seeds .sample-icon {
    color: #d97706;
}

.sample-item.petals .sample-icon {
    color: #ec4899;
}

.sample-item.shells .sample-icon {
    color: #2563eb;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 4px solid #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 18px;
    color: #1f2937;
    font-weight: 700;
}

/* Variation Series Display */
.variation-item {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
}

/* Form Enhancements */
.form-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #6366f1;
}

/* Chart Container */
#variation-chart {
    width: 100% !important;
    height: 100% !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .sample-item {
        min-height: 60px;
        padding: 8px;
    }
    
    .sample-item .sample-icon {
        font-size: 18px;
    }
    
    .sample-item .sample-size {
        font-size: 10px;
    }
}

/* Loading animations */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error messages */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

/* Image gallery for examples */
.example-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.example-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.example-item:hover {
    transform: translateY(-4px);
}

.example-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.example-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 16px 12px 8px;
    font-size: 14px;
    text-align: center;
}