* {
    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;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

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

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

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

.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.upload-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.upload-box {
    text-align: center;
}

.file-label {
    cursor: pointer;
    display: block;
}

.icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

h3 {
    color: #333;
    margin-bottom: 5px;
}

.upload-box p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

input[type="file"] {
    display: none;
}

.file-name {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: background 0.3s;
}

.file-label:hover .file-name {
    background: #5568d3;
}

.analyze-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.hidden {
    display: none;
}

.results {
    animation: fadeIn 0.5s;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.unfollowers-section {
    margin-top: 30px;
}

.unfollowers-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.unfollowers-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
}

.unfollower-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.unfollower-item:hover {
    background: #e9ecef;
}

.username {
    font-weight: 600;
    color: #333;
}

.profile-link {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.profile-link:hover {
    background: #5568d3;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.download-btn {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #218838;
}

.instructions {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #333;
}

.instructions ol {
    margin-left: 20px;
    line-height: 1.8;
}

.instructions code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    color: #856404;
}

.github-link {
    margin-top: 20px;
}

.github-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.github-link a:hover {
    background: #1a1e22;
    transform: translateY(-2px);
}

.github-link svg {
    width: 20px;
    height: 20px;
}

/* Scrollbar styling */
.unfollowers-list::-webkit-scrollbar {
    width: 8px;
}

.unfollowers-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.unfollowers-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.unfollowers-list::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
