* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #03d55c 0%, #00702f 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.header h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.upload-section {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.upload-prompt {
    text-align: center;
    margin-bottom: 25px;
}

.upload-prompt h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2d3748;
}

.upload-prompt p {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 25px;
}

.upload-area:hover {
    border-color: #03d55c;
    background: #edf2f7;
}

.upload-area.dragover {
    border-color: #03d55c;
    background: #e6fffa;
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #03d55c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 14px;
    color: #718096;
}

.file-input {
    display: none;
}

.photo-preview {
    margin-bottom: 25px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f7fafc;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-remove:hover {
    background: #e53e3e;
}

.photo-remove svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.photo-count {
    font-size: 14px;
    color: #718096;
    text-align: center;
    margin-bottom: 15px;
}

.upload-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #03d55c 0%, #00702f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.upload-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
    display: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #03d55c, #00702f);
    width: 0%;
    transition: width 0.3s ease;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .upload-section {
        padding: 25px 20px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}
