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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background: white;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
}

.controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.music-controls select {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.music-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-controls button:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.music-controls input[type="range"] {
    width: 60px;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-controls input[type="range"]::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.music-controls input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.color-palette {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #333;
}

.color-option.selected {
    border-color: #007bff;
    transform: scale(1.2);
}

.zoom-controls {
    display: flex;
    gap: 4px;
}

.zoom-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
}

.zoom-controls button:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 2px solid #e9ecef;
    margin: 1rem;
    border-radius: 8px;
}

#place-canvas {
    cursor: crosshair;
    image-rendering: pixelated;
    transition: transform 0.1s ease;
}

.pixel-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Space Mono', monospace;
}

.sidebar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

#activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.activity-item {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    animation: slideIn 0.3s ease;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

#chat-messages {
    flex: 1;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1rem;
}

.chat-message {
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    animation: slideIn 0.3s ease;
    word-wrap: break-word;
    position: relative;
}

.chat-message .username {
    font-weight: bold;
    color: #007bff;
}

.chat-message .message {
    color: #333;
}

.chat-input {
    display: flex;
    gap: 4px;
}

#chat-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

#chat-input:focus {
    border-color: #007bff;
}

#send-chat {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s ease;
}

#send-chat:hover {
    background: #0056b3;
}

#send-chat:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.admin-panel {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.admin-panel h3 {
    color: #dc3545;
    font-size: 0.9rem;
}

#report-queue {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-item {
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 11px;
}

.report-item .reported-message {
    font-weight: bold;
    color: #856404;
    margin-bottom: 4px;
}

.report-item .report-info {
    color: #6c757d;
    font-size: 10px;
}

.report-item button {
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.chat-message:hover .report-btn {
    opacity: 1;
}

.report-btn {
    position: absolute;
    right: 4px;
    top: 2px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 2px;
    padding: 1px 4px;
    font-size: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.report-btn:hover {
    background: #c82333;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 14px;
}

.modal-content select {
    width: 100%;
    padding: 8px;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

#submit-report, #confirm-ban {
    background: #dc3545;
    color: white;
}

#cancel-report, #dismiss-report {
    background: #6c757d;
    color: white;
}

.modal-buttons button:hover {
    opacity: 0.9;
}

.rules-button {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.rules-button:hover {
    background: #218838;
    transform: scale(1.05);
}

.rules-content {
    text-align: left;
    margin-bottom: 1rem;
}

.rules-content h4 {
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-size: 14px;
}

.rules-content h4:first-child {
    margin-top: 0;
}

.rules-content ul {
    margin: 0 0 1rem 1rem;
    padding: 0;
}

.rules-content li {
    margin-bottom: 0.5rem;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

#close-rules {
    background: #007bff;
    color: white;
}

.creator-tag {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    animation: creatorGlow 2s ease-in-out infinite alternate;
}

.creator-name {
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0080);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: rainbowMove 2s linear infinite;
    font-weight: bold;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes creatorGlow {
    from {
        box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 0 5px rgba(255,107,107,0.3);
    }
    to {
        box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 0 8px rgba(78,205,196,0.4);
    }
}

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

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .music-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .color-palette {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .sidebar {
        position: static;
        transform: none;
        width: auto;
        margin: 1rem;
        max-height: 200px;
    }
}

#online-users {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    animation: slideIn 0.3s ease;
}

.online-user.current-user {
    background: #e3f2fd;
    border: 1px solid #2196f3;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-count {
    font-size: 11px;
    color: #666;
    font-weight: normal;
}

.silly-admin-content {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    padding: 2rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #ff69b4;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    animation: sillyBounce 0.5s ease-out;
}

@keyframes sillyBounce {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.silly-admin-content h3 {
    text-align: center;
    color: #ff1493;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: sillyWiggle 2s ease-in-out infinite;
}

@keyframes sillyWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.silly-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border: 2px dashed #ff69b4;
}

.silly-header p {
    margin: 0.5rem 0;
    color: #d63384;
    font-weight: bold;
    font-size: 0.9rem;
}

.silly-ban-section {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 2px solid #ff69b4;
}

.silly-ban-section h4 {
    text-align: center;
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    animation: sillyPulse 1.5s ease-in-out infinite;
}

@keyframes sillyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.user-selector, .ban-duration-silly, .silly-reason {
    margin-bottom: 1rem;
}

.user-selector label, .ban-duration-silly label, .silly-reason label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6f42c1;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-selector select, .ban-duration-silly select, .silly-reason input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    color: #333;
}

.user-selector select:focus, .ban-duration-silly select:focus, .silly-reason input:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.silly-action-type, .silly-timeout-display {
    margin-bottom: 1rem;
}

.silly-action-type label, .silly-timeout-display label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6f42c1;
    font-weight: bold;
    font-size: 0.9rem;
}

.silly-action-type select, .silly-timeout-display select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    color: #333;
}

.silly-action-type select:focus, .silly-timeout-display select:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.silly-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.silly-ban-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.silly-ban-button:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.silly-cancel-button {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

.silly-cancel-button:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.6);
}

.silly-footer {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border: 2px dashed #ff69b4;
}

.silly-footer p {
    margin: 0;
    color: #6f42c1;
    font-weight: bold;
    font-size: 0.8rem;
    font-style: italic;
}