body {
	margin: 0;
	font-family: Arial, sans-serif;
	overflow: hidden;
}

#resize-handle::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><line x1="0" y1="16" x2="16" y2="0" stroke="white" stroke-width="2"/><line x1="4" y1="16" x2="16" y2="4" stroke="white" stroke-width="2"/><line x1="8" y1="16" x2="16" y2="8" stroke="white" stroke-width="2"/></svg>') no-repeat center center;
    opacity: 0.5;
}
#reload-button {
	background: rgba(255, 255, 255, 0.2);
	color: rgb(250, 250, 250);
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	margin-top: 10px;
	display: inline-block;
    margin-left: 5px;
}
    .reset-button {
				background: rgba(255, 0, 0, 0.3);
				color: white;
				border: none;
				padding: 5px 10px;
				cursor: pointer;
				margin-top: 10px;
				display: inline-block;
			}
            .back-button {
				background: rgba(255, 255, 255, 0.2);
				color: white;
				border: none;
				padding: 5px 10px;
				cursor: pointer;
				margin-top: 10px;
				margin-right: 5px;
				display: inline-block;
			}
            	.add-player {
				background: rgba(0, 255, 0, 0.2);
				color: white;
				border: 1px solid rgba(255, 255, 255, 0.3);
				padding: 5px 10px;
				cursor: pointer;
				margin-top: 5px;
			}
            .remove-player {
				background: rgba(255, 0, 0, 0.3);
				color: white;
				border: none;
				padding: 2px 6px;
				cursor: pointer;
			}
            .option-toggle label {
				cursor: pointer;
			}
            #friends-list-overlay {
				position: fixed;
				top: 10px;
				left: 10px;
				background-color: rgba(0, 0, 0, 0.7);
				color: white;
				padding: 5px;
				min-width: 120px;
				cursor: move;
				user-select: none;
				overflow-y: hidden;
				transition: background-color 0.2s;
				box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
				width: 225px;
				max-width: 700px;
				z-index: 9999;
				border: none;
				background-clip: padding-box;
				height: 275px;
				max-height: 750px;
			    position: relative;
                z-index: 1;
			}

			#friends-list-overlay.with-border {
				border: 4px solid;
                --angle: 0deg;
                border-image: conic-gradient(from var(--angle), rgb(2, 255, 192), rgb(180, 3, 3), rgb(0, 0, 0) 100%) 1;
                border-image-slice: 1;
                border-image-width: 4px;
            }

			#friends-list-overlay.pinned {
				cursor: default;
			}

			#friends-list-title {
				font-weight: bold;
				text-align: center;
				margin-bottom: 5px;
				border-bottom: 1px solid rgba(255, 255, 255, 0.3);
				padding-bottom: 3px;
				font-size: 14px;
				color: #fff;
				text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
			}

			#friends-list-players {
				display: flex;
				flex-direction: column;
				gap: 5px;
				overflow-y: hidden;
				max-height: calc(100% - 30px);
			}

			.server-section {
				display: flex;
				flex-direction: column;
				width: 100%;
				margin-bottom: 3px;
			}

			.server-title {
				font-weight: bold;
				font-size: 0.9em;
				padding: 2px 0;
				margin-bottom: 2px;
				border-bottom: 1px solid rgba(255, 255, 255, 0.3);
			}

			.friends-list-player {
				padding: 2px 0;
				display: flex;
				align-items: center;
				font-size: 0.9em;
			}

			.friends-list-player:not(:last-child) {
				border-bottom: 1px solid rgba(255, 255, 255, 0.1);
			}
			
			.error-message {
				color: #ff6b6b;
				font-size: 0.9em;
				padding: 4px 0;
				font-style: italic;
			}
			#resize-handle {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 16px;
            height: 16px;
            background: #444;
            cursor: se-resize;
            z-index: 20;
            border-bottom-right-radius: 4px;
            }

			/* Settings icon and panel styles */
			#settings-icon {
				position: absolute;
				top: 2px;
				right: 2px;
				cursor: pointer;
				color: rgba(255, 255, 255, 0.7);
				font-size: 16px;
				transition: color 0.2s;
				}
			
			#settings-icon:hover {
				color: white;
			}
			
			#settings-panel {
				display: none;
				position: absolute;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background: rgba(0, 0, 0, 0.9);
				z-index: 10;
				padding: 15px;
				overflow-y: auto;
			}
			
			.settings-section {
				margin-bottom: 15px;
				border-bottom: 1px solid rgba(255, 255, 255, 0.2);
				padding-bottom: 10px;
			}
			
			.settings-section h3 {
				margin-top: 0;
				margin-bottom: 10px;
				color: white;
			}
			
			#opacity-slider {
				width: 100%;
				margin: 5px 0;
			}
			
			.player-entry {
				display: flex;
				align-items: center;
				margin-bottom: 5px;
			}
			
			.player-entry input {
				flex-grow: 0;
				background: rgba(255, 255, 255, 0.1);
				border: 1px solid rgba(255, 255, 255, 0.3);
				color: white;
				padding: 5px;
				margin-right: 5px;
				width: 100px;
			}
			
			.player-entry input[type="text"] {
				width: 120px;
			}
			
			.player-entry input[type="number"] {
				width: 80px;
			}
			.option-toggle {
				margin-bottom: 8px;
				display: flex;
				align-items: center;
			}
			
			.option-toggle input[type="checkbox"] {
				margin-right: 8px;
			}
			#reset-confirm-popup {
                display: none;
                position: fixed;
                left: 0; top: 0;
                width: 100vw; height: 100vh;
                background: rgba(0,0,0,0.6);
                z-index: 9999;
                align-items: center;
                justify-content: center;
            } 
            #reset-confirm-popup .popup-content {
                background: #222;
                color: #fff;
                padding: 30px 20px;
                border-radius: 10px;
                text-align: center;
                min-width: 250px;
            }