:root {
    --primary-color: #38b2ac;
    --secondary-color: #2c7a7b;
    --accent-color: #81e6d9;
    --background-color: #f0f5f9;
    --card-color: #ffffff;
    --text-color: #2d3748;
}

body {
    background: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
}

.card {
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
    background: var(--card-color);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .container {
        padding: 30px;
    }
    .card {
        padding: 30px;
    }
}

h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
}

@media (min-width: 768px) {
    .title-container {
        gap: 15px;
        margin-bottom: 16px;
    }
}

.subtitle {
    margin-bottom: 20px;
    color: #718096;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .subtitle {
        margin-bottom: 25px;
        font-size: 1rem;
    }
}

.upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 20px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .upload-area {
        padding: 30px;
    }
}

.upload-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .upload-icon {
        font-size: 48px;
    }
}

.upload-text {
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .upload-text {
        font-size: 1rem;
    }
}

#imageInput {
    display: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.2);
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    margin: 15px auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.result-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.count-display {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 15px auto;
    box-shadow: 0 4px 15px rgba(56, 178, 172, 0.2);
    min-width: 100px;
    justify-content: center;
}

.count-label {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.seed-icon {
    display: inline-flex;
    animation: float 3s ease-in-out infinite;
    opacity: 0.85;
    line-height: 1;
    margin: 0;
    transform: translateY(0);
    font-size: 1.2em;
    color: var(--primary-color);
    padding: 0 2px;
}

.seed-icon:nth-child(2) {
    animation-delay: 0.5s;
    font-size: 1.1em;
}

.seed-icon:nth-child(3) {
    animation-delay: 1s;
    font-size: 1em;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.loading-spinner {
    display: none;
    text-align: center;
    margin: 30px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.simple-loading-indicator {
    display: flex;
    align-items: center;
    margin-top: 15px;
    background-color: rgba(56, 178, 172, 0.08);
    border-radius: 8px;
    padding: 15px 20px;
    justify-content: center;
}

.simple-loading-indicator span {
    font-weight: 500;
    margin-left: 10px;
}

.simple-loading-indicator i {
    margin-right: 6px;
    color: var(--primary-color);
}

.progress-pulse {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 5px;
    animation: pulse 1.5s infinite ease-in-out;
}

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

.loading-dots:after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.canvas-container {
    display: none;
    margin: 20px 0;
    text-align: center;
}

#resultCanvas {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} 