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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 1rem;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Screenshot Area */
.screenshot-area {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.screenshot-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.icon-container {
    margin-bottom: 2rem;
}

.camera-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.1);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.camera-icon:hover {
    transform: scale(1.05);
}

.content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.content p {
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.capture-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.capture-btn:hover {
    background: linear-gradient(135deg, #ff5252, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.capture-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.5rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Images Container */
.images-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.images-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.image-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.image-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-preview img {
    transform: scale(1.05);
}

.delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ff4757;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #ff3742;
}

.image-info {
    padding: 1.5rem;
}

.image-timestamp {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-btn {
    background: #5f27cd;
    color: white;
}

.copy-btn:hover {
    background: #341f97;
}

.copy-btn.copied {
    background: #00d2d3;
}

.download-btn {
    background: #10ac84;
    color: white;
    text-decoration: none;
}

.download-btn:hover {
    background: #01a3a4;
}

/* Instructions */
.instructions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.instructions h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2ed573;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    z-index: 1000;
    transform: translateY(100px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateY(0);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .screenshot-card {
        padding: 2rem;
    }
    
    .content h3 {
        font-size: 1.5rem;
    }
    
    .capture-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}