.user-circle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
    font-size: 14px;
}

.user-dropdown button:hover {
    background-color: #f0f0f0;
}

.user-dropdown button i {
    width: 20px;
    text-align: center;
}

.friend-request-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.friend-request-count,
.online-friends-count,
.user-dropdown .message-count,
.challenges-count,
.active-games-count {
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 0.8em !important;
    margin-left: auto !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    min-width: auto !important;
    text-align: left !important;
}

.hidden {
    display: none !important;
}

/* Spezifische Regel für alle Badges im UserCircle Dropdown */
.user-dropdown .friend-request-count,
.user-dropdown .message-count,
.user-dropdown .online-friends-count,
.user-dropdown .challenges-count,
.user-dropdown .active-games-count {
    background-color: #ff4444 !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 0.8em !important;
    margin-left: auto !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    min-width: auto !important;
    text-align: left !important;
    width: auto !important;
    height: auto !important;
}

.online-friends i {
    color: #4CAF50;
    font-size: 0.8em;
}

.messages i {
    color: #2196F3;
    font-size: 0.9em;
}

.logout {
    border-top: 1px solid #eee !important;
    margin-top: 8px;
    color: #dc3545 !important;
}

.logout:hover {
    background-color: #fff5f5 !important;
}

/* UserCircle Modal Styles */
.userCircle-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.userCircle-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.challenges-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px;
}

.challenge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.challenge-item:last-child {
    margin-bottom: 0;
}

.challenge-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-right: 20px;
}

.challenge-details {
    display: flex;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.95em;
}

.color-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-info::before {
    content: '\f1fc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #9b59b6;
}

.challenger {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenger::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #3498db;
}

.time-control {
    color: #7f8c8d;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-control::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #e67e22;
}

.challenge-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.accept-btn, .decline-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.accept-btn {
    background-color: #2ecc71;
    color: white;
}

.accept-btn:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46,204,113,0.2);
}

.decline-btn {
    background-color: #e74c3c;
    color: white;
}

.decline-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231,76,60,0.2);
}

.accept-btn i, .decline-btn i {
    font-size: 1.1em;
}

.no-challenges {
    text-align: center;
    color: #7f8c8d;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    margin: 10px;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-challenges::before {
    content: '\f0c1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2em;
    color: #bdc3c7;
}

/* Scrollbar Styling */
.challenges-list::-webkit-scrollbar {
    width: 8px;
}

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

.challenges-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.challenges-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Styling für offene Spiele */
.active-games-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.game-item .game-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-right: 20px;
}

.game-details {
    display: flex;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.95em;
}

.game-item .opponent {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.continue-btn {
    padding: 8px 16px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.continue-btn:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46,204,113,0.2);
}

.no-games {
    text-align: center;
    color: #7f8c8d;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    margin: 10px;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-games::before {
    content: '\f0c1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2em;
    color: #bdc3c7;
} 

/* Styling für Online-Freunde */
.online-friends-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px;
}

.online-friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.online-friend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.online-friend-item:last-child {
    margin-bottom: 0;
}

.online-friend-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-right: 20px;
}

.online-friend-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-friend-name::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #3498db;
}

.online-friend-rating {
    color: #7f8c8d;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-friend-rating::before {
    content: '\f091';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #f39c12;
}

.challenge-btn {
    padding: 10px 20px !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: normal !important;
    transition: background-color 0.3s !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.challenge-btn:hover {
    background-color: #45a049 !important;
}

.challenge-btn i {
    font-size: 1.1em;
}

.no-friends {
    text-align: center;
    color: #7f8c8d;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    margin: 10px;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-friends::before {
    content: '\f0c0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2em;
    color: #bdc3c7;
}

/* Styling für Freundschaftsanfragen - verbessert nach dem Design der offenen Spiele */
.friend-requests-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px;
}

.friend-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.friend-request-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.friend-request-item:last-child {
    margin-bottom: 0;
}

.friend-request-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-right: 20px;
}

.friend-request-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.friend-request-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.friend-request-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-request-name::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #3498db;
}

.friend-request-rating {
    color: #7f8c8d;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-request-rating::before {
    content: '\f091';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #f39c12;
}

.friend-request-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.friend-request-actions .accept-btn,
.friend-request-actions .reject-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.friend-request-actions .accept-btn {
    background-color: #2ecc71;
    color: white;
}

.friend-request-actions .accept-btn:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46,204,113,0.2);
}

.friend-request-actions .reject-btn {
    background-color: #e74c3c;
    color: white;
}

.friend-request-actions .reject-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231,76,60,0.2);
}

.friend-request-actions .accept-btn i,
.friend-request-actions .reject-btn i {
    font-size: 1.1em;
}

.no-requests {
    text-align: center;
    color: #7f8c8d;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    margin: 10px;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-requests::before {
    content: '\f234';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2em;
    color: #bdc3c7;
} 