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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1c2c 0%, #2a2d4f 100%);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    color: #e2e8f0;
}

/* Header section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-section .fa-github {
    font-size: 3rem;
    margin-right: 1rem;
    animation: pulse 2s ease-in-out infinite;
    color: #8957e5;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #cbd5e0;
    font-weight: 500;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Loading animations */
.loading {
    text-align: center;
    margin: 1rem 0;
    padding: 2rem;
    border-radius: 16px;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: pulse 2s infinite;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loadingShine 1.5s ease-in-out infinite;
}

@keyframes loadingShine {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 3rem;
    color: #fff;
}

.input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 16px;
}

/* Form elements */
input {
    padding: 0.8rem 1rem;
    border: 2px solid #4a5568;
    border-radius: 8px;
    width: 250px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    color: #fff;
    background-color: transparent;
}

input::placeholder {
    color: #a0aec0;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

button {
    padding: 1rem 2rem;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to right, #2ea44f, #34d058);
    box-shadow: 0 2px 4px rgba(46,164,79,0.2);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46,164,79,0.3);
    background: linear-gradient(to right, #2c974b, #2ea44f);
}

.advanced-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.advanced-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.recommended-btn {
    background: linear-gradient(to right, #6f42c1, #8957e5);
}

.recommended-btn:hover {
    background: linear-gradient(to right, #5a32a3, #6f42c1);
    box-shadow: 0 4px 8px rgba(111,66,193,0.3);
}

/* Results section */
.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.stat-box h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-box span {
    font-size: 3rem;
    font-weight: 700;
    color: #bbdefb;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

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

.list {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.list h3 {
    margin-bottom: 0;
    color: #f9f9f9;
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4a5568;
}

.list-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #4a5568;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Unfollow button styling */
.unfollow-selected {
    background: linear-gradient(to right, #dc2626, #ef4444) !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
}

.unfollow-selected:hover {
    background: linear-gradient(to right, #b91c1c, #dc2626) !important;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3) !important;
}

/* User items */
.user-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.user-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-item img {
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-item a {
    text-decoration: none;
    color: #bbdefb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.user-item.unfollowed {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: #d1d5db;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer .fa-heart {
    color: #e53e3e;
    animation: heartbeat 1.5s ease infinite;
}

.captain {
    font-weight: 700;
    color: #bbdefb;
    padding: 0 0.5rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.year {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6f42c1;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

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

.error {
    background-color: #ffebe9;
    color: #cf222e;
}
