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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}


/* Page Transition Effects */
body.page-loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

.chat-container {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.chat-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.room-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 10px;
}

.room-button {
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.2);
    border: 1px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.room-button:hover {
    background: rgba(74, 158, 255, 0.3);
    border-color: rgba(74, 158, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.room-button-leave {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.room-button-leave:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.room-code-display {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid rgba(81, 207, 102, 0.4);
    border-radius: 8px;
    color: #51cf66;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.room-code-display strong {
    color: #51cf66;
    letter-spacing: 2px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0;
}

.modal-content input:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.6);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-button {
    padding: 10px 20px;
    background: rgba(74, 158, 255, 0.3);
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-button:hover {
    background: rgba(74, 158, 255, 0.5);
    transform: translateY(-2px);
}

.modal-button-cancel {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.modal-button-cancel:hover {
    background: rgba(255, 107, 107, 0.5);
}

.room-code-display-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(81, 207, 102, 0.1);
    border: 2px solid rgba(81, 207, 102, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
}

.room-code-display-large span {
    font-size: 32px;
    font-weight: bold;
    color: #51cf66;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.copy-button {
    padding: 10px 15px;
    background: rgba(74, 158, 255, 0.3);
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-button:hover {
    background: rgba(74, 158, 255, 0.5);
    transform: scale(1.1);
}

/* Emoji Picker Styles */
.emoji-picker-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.emoji-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* GIF Picker Styles */
.gif-picker-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.gif-search-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gif-search-input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.gif-search-input:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.6);
}

.gif-search-button {
    padding: 10px 20px;
    background: rgba(74, 158, 255, 0.3);
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.gif-search-button:hover {
    background: rgba(74, 158, 255, 0.5);
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.gif-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.gif-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-loading,
.gif-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #b0b0b0;
}

.gif-error a {
    color: #4a9eff;
    text-decoration: underline;
}


.chat-header h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.chat-subtitle {
    font-size: 16px;
    color: #b0b0b0;
    font-style: italic;
}

.chat-messages {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-user {
    font-weight: bold;
    color: #4a9eff;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #b0b0b0;
}

.message-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 3px solid rgba(74, 158, 255, 0.5);
    word-wrap: break-word;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.welcome-message .message-content {
    background: rgba(74, 158, 255, 0.1);
    border-left-color: #4a9eff;
    text-align: center;
    font-style: italic;
}

.chat-input-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name-container {
    margin-bottom: 15px;
}

.user-name-container label {
    color: #b0b0b0;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.name-input-wrapper {
    display: flex;
    gap: 10px;
}

.user-name-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-name-input::placeholder {
    color: #b0b0b0;
}

.user-name-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.save-name-button {
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.save-name-button:hover {
    background: #5ba8ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.save-name-button:active {
    transform: translateY(0);
}

.current-name-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-name-display span {
    color: #e0e0e0;
    font-size: 14px;
}

.current-name-display strong {
    color: #4a9eff;
}

.change-name-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-name-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.emoji-button,
.gif-button,
.image-upload-button {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.emoji-button {
    font-size: 20px;
}

.gif-button {
    font-weight: bold;
    font-size: 12px;
}

.emoji-button:hover,
.gif-button:hover,
.image-upload-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.emoji-button:active,
.gif-button:active,
.image-upload-button:active {
    transform: translateY(0);
}

.emoji-button:disabled,
.gif-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}


.image-preview,
.gif-preview {
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain;
}

.remove-image-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 77, 77, 0.8);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image-button:hover {
    background: rgba(255, 77, 77, 1);
    transform: scale(1.1);
}

.message-image,
.message-gif {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.message-image img,
.message-gif img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
}

.chat-gif {
    cursor: pointer;
}

.chat-image {
    cursor: pointer;
}

.expanded-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.expanded-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanded-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-expanded-image {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 77, 77, 0.8);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.close-expanded-image:hover {
    background: rgba(255, 77, 77, 1);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.message-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.message-input::placeholder {
    color: #b0b0b0;
}

.message-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.message-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.send-button {
    background: #4a9eff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.send-button:hover {
    background: #5ba8ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.send-button:active {
    transform: translateY(0);
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.message-image img.expanded::after {
    content: 'Click to close';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
}

@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 50%, #e0e7ff 100%);
        color: #2d3748;
    }

    .image-upload-button {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .image-upload-button:hover {
        background: rgba(0, 0, 0, 0.1);
    }

    .image-preview {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .back-button {
        background: rgba(0, 0, 0, 0.05);
        color: #2d3748;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .back-button:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #1a202c;
    }

    .chat-header h1 {
        color: #1a202c;
        text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    }

    .chat-subtitle {
        color: #4a5568;
    }

    .chat-messages {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .message-user {
        color: #2563eb;
    }

    .message-time {
        color: #4a5568;
    }

    .message-content {
        background: rgba(0, 0, 0, 0.03);
        border-left-color: rgba(37, 99, 235, 0.5);
    }

    .welcome-message .message-content {
        background: rgba(37, 99, 235, 0.1);
        border-left-color: #2563eb;
    }

    .chat-input-container {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .user-name-container label {
        color: #4a5568;
    }

    .user-name-input {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #2d3748;
    }

    .user-name-input::placeholder {
        color: #4a5568;
    }

    .save-name-button {
        background: #2563eb;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }

    .save-name-button:hover {
        background: #1d4ed8;
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    }

    .current-name-display {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .current-name-display span {
        color: #2d3748;
    }

    .current-name-display strong {
        color: #2563eb;
    }

    .change-name-button {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #2d3748;
    }

    .change-name-button:hover {
        background: rgba(0, 0, 0, 0.08);
        color: #1a202c;
    }

    .message-input {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #2d3748;
    }

    .message-input::placeholder {
        color: #4a5568;
    }

    .send-button {
        background: #2563eb;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }

    .send-button:hover {
        background: #1d4ed8;
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    }
}

@media (max-width: 600px) {
    .chat-header h1 {
        font-size: 32px;
    }

    .chat-subtitle {
        font-size: 14px;
    }

    .chat-messages {
        padding: 20px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .send-button {
        width: 100%;
    }
}

/* Dev Chat Styling */
body.dev-chat-active {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #2a0a3e 100%);
}

body.dev-chat-active::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 100, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(100, 200, 255, 0.15) 0%, transparent 50%);
}

.dev-chat .chat-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 100, 200, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2), inset 0 0 30px rgba(255, 215, 0, 0.1);
    animation: devPulse 3s ease-in-out infinite;
}

@keyframes devPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2), inset 0 0 30px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 40px rgba(255, 215, 0, 0.4), inset 0 0 40px rgba(255, 215, 0, 0.2);
    }
}

.dev-chat-header h1 {
    background: linear-gradient(135deg, #ffd700 0%, #ff69b4 50%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-size: 42px;
    animation: devShimmer 2s ease-in-out infinite;
}

@keyframes devShimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.dev-chat .chat-messages {
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.dev-chat .message {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid rgba(255, 215, 0, 0.3);
}

.dev-chat .message:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.dev-chat .chat-input-container {
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    background: rgba(255, 215, 0, 0.05);
}

.dev-chat .send-button {
    background: linear-gradient(135deg, #ffd700 0%, #ff69b4 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.dev-chat .send-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ff8cc8 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.dev-chat .room-button {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 100, 200, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}

.dev-chat .room-button:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 100, 200, 0.3) 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.dev-welcome {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 100, 200, 0.1) 100%) !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2) !important;
}

/* Notes Panel Styles */
.notes-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid rgba(255, 215, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.notes-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.05);
}

.notes-header h2 {
    margin: 0;
    color: #ffd700;
    font-size: 24px;
}

.close-notes-button {
    background: transparent;
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-notes-button:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.notes-controls {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.add-note-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ff69b4 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.add-note-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.notes-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-content: flex-start;
    overflow-y: auto;
}

/* Sticky Note Styles */
.sticky-note {
    width: 160px;
    min-height: 160px;
    padding: 15px;
    background: #ffeb3b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 -2px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3),
                0 3px 6px rgba(0, 0, 0, 0.2),
                inset 0 -2px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

.sticky-note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.sticky-note-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.sticky-note-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex: 1;
    word-wrap: break-word;
    line-height: 1.3;
}

.edit-note-button,
.delete-note-button {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #dc2626;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.edit-note-button {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #3b82f6;
}

.edit-note-button:hover {
    background: rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

.delete-note-button:hover {
    background: rgba(220, 38, 38, 0.4);
    transform: scale(1.1);
}

.sticky-note-content {
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.sticky-note-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #777;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 8px;
    margin-top: auto;
}

.sticky-note-author {
    font-weight: bold;
}

.sticky-note-date {
    opacity: 0.7;
}

/* Note Form Styles */
.note-form-group {
    margin-bottom: 20px;
}

.note-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: bold;
}

.note-input,
.note-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.2s;
}

.note-input:focus,
.note-textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.note-textarea {
    min-height: 120px;
    resize: vertical;
}

.note-char-count {
    display: block;
    text-align: right;
    margin-top: 5px;
    color: #b0b0b0;
    font-size: 12px;
}

/* Dark mode support for notes */
@media (prefers-color-scheme: dark) {
    .sticky-note {
        color: #333;
    }
    
    .sticky-note-title {
        color: #333;
    }
    
    .sticky-note-content {
        color: #555;
    }
}

