body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 2rem 0;
    display: flex;
    align-items: center;
}

.main-container {
    max-width: 680px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.photo-description {
    font-size: 0.95rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.photo-description .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    vertical-align: middle;
}

.file-btn {
    display: block;
    background: white;
    color: #333;
    padding: 16px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.file-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    left: 0;
    top: 0;
}

.file-selected {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    font-weight: 700;
}

.social-input {
    background: rgba(255,255,255,0.35);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    color: white;
    font-size: 1rem;
}

.social-input::placeholder {
    color: rgba(255,255,255,0.9);
}

.social-input:focus {
    background: rgba(255,255,255,0.45);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
    color: white;
    outline: none;
}

.btn-analyze {
    background: linear-gradient(45deg, #ff6b9d, #ffa3c4);
    border: none;
    border-radius: 50px;
    padding: 16px 60px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 12px 35px rgba(255,107,157,0.5);
    transition: all 0.3s;
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255,107,157,0.6);
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress {
    height: 14px;
    border-radius: 7px;
    background: rgba(255,255,255,0.2);
}

.progress-bar {
    border-radius: 7px;
    background: linear-gradient(90deg, #a8edea, #fed6e3);
    transition: width 1s ease-in-out;
}

.result-item {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.result-text {
    text-align: left;
}

.result-text strong {
    color: #ffd700;
    font-weight: 700;
}

.result-text p {
    margin-bottom: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .main-container {
        max-width: 100%;
    }

    .main-title {
        font-size: 2.3rem;
    }

    .glass-card {
        padding: 2rem;
    }

    .file-btn {
        font-size: 0.95rem;
        padding: 14px 18px;
    }

    .photo-description {
        font-size: 0.85rem;
    }

    .photo-description .badge {
        font-size: 0.65rem;
        display: block;
        width: fit-content;
        margin-top: 0.3rem;
        margin-left: 0 !important;
    }
}
