/* Ogólne style */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #1e1e1e, #121212);
    color: #f0f0f0;
}

h2 {
    text-align: center;
    margin: 30px 0;
    font-size: 2rem;
    background: linear-gradient(to right, #e63946, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.users-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.user-card {
    background: linear-gradient(to bottom, #1e1e1e, #2a2a2a);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #444;
}

.user-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #e63946;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-info {
    color: #f0f0f0;
}

.user-account-type {
    font-size: 1.1rem;
    color: #a6a6a6;
    margin-bottom: 10px;
    font-style: italic;
}

.user-registration-date {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .users-container {
        padding: 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .users-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .user-card {
        padding: 20px;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }

    .user-username {
        font-size: 1.2rem;
    }

    .user-account-type {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .users-grid {
        grid-template-columns: 1fr;
    }

    .user-card {
        padding: 15px;
    }

    .user-avatar {
        width: 70px;
        height: 70px;
    }

    .user-username {
        font-size: 1.1rem;
    }
}

.user-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.user-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
    border-color: #e63946;
}

.user-extra {
    font-size: 0.85rem;
    color: #ccc;
    background: linear-gradient(to bottom, #1e1e1e38, #2a2a2a31);
    border: 1px solid #444;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    line-height: 1.6;
}

.user-extra b {
    color: #fff;
}

.user-extra i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .user-extra {
        font-size: 0.8rem;
    }
}

.users-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.users-filters input[type="text"],
.users-filters select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1c1c1c;
    color: #939393;
    width: 220px;
}

.users-filters button {
    padding: 8px 18px;
    background-color: #e63946;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.users-filters button:hover {
    background-color: #c9303e;
}

.avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}


.user-username {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    word-break: break-word;
    max-width: 100%;
    overflow-wrap: break-word;
}

.user-username:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px var(--accent);
    cursor: pointer;
    transform: scale(1.02);
}