* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
}

.search-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: #667eea;
    background: white;
}

.instagram-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    padding: 0 10px;
}

#usernameInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px 10px;
    font-size: 1rem;
    color: #333;
}

#usernameInput::placeholder {
    color: #999;
}

#scrapeBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#scrapeBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#scrapeBtn:active:not(:disabled) {
    transform: translateY(0);
}

#scrapeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.results {
    animation: fadeIn 0.5s ease-in;
}

.profile-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.profile-header {
    margin-bottom: 25px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.profile-username {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 0.85rem;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loader {
    animation: spin 1s linear infinite;
}



