/* Standardize sidebar like homepage */
.sidebar {
  width: 400px !important;
  background: url('../Sidebar.png') center center / 100% 100% no-repeat !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  height: 88vh !important;
}
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 30px 40px;
}

.messages-container {
    display: flex;
    height: calc(100vh - 140px); /* Adjust height for padding */
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden; /* Important for keeping rounded corners */
}

.message-controls {
    padding: 0 15px 10px;
}

.skeuo-button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #b0b0b0;
    background: linear-gradient(145deg, #f0f0f0, #dcdcdc);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12), var(--skeu-shadow-inset-light);
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.15s ease-out;
    font-size: 0.9rem;
}
.skeuo-button:hover {
    background: linear-gradient(145deg, #f9f9f9, #e8e8e8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), var(--skeu-shadow-inset-light);
}
.skeuo-button:active {
    background: linear-gradient(145deg, #dcdcdc, #f0f0f0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
    transform: translateY(1px);
}
.skeuo-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e0e0e0;
}

.conversations-list {
    width: 320px;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.05);
}

.conversations-list h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.conversations-list h3 {
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.search-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.search-input-container button {
    padding: 10px 16px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Baloo 2', cursive;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.search-input-container button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-input-container button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#user-search {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

#user-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.user-item:hover {
    background-color: #e0e0e0;
    border-color: #007bff;
}

.user-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-item .username {
    font-weight: bold;
    font-size: 0.9rem;
}

.conversations-section {
    flex: 1;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background-color 0.2s;
    position: relative;
}

.conversation-item:hover, .conversation-item.active {
    background-color: #e0e0e0;
}

.conversation-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.conversation-info p {
    margin: 0;
}

.conversation-info .username {
    font-weight: bold;
}

.conversation-info .last-message {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}


.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 0 20px 20px 0;
}

.chat-header {
    padding: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    border-radius: 0 20px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.presence-dot { position:absolute; right:8px; top:8px; width:12px; height:12px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px rgba(0,0,0,.15); }
.presence-online { background:#2ecc71; }
.presence-offline { background:#bdc3c7; }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
}

.message.sent {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.received {
    background-color: #e9e9eb;
    color: black;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-input {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
    border-radius: 0 0 20px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.chat-input button {
    background: url('../BlueButton.png') center center / 100% 100% no-repeat;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Baloo 2', cursive;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: sendButtonPulse 2s infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.chat-input button:hover {
    background: url('../BlueButton.png') center center / 110% 110% no-repeat;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.chat-input button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
    animation: sendButtonClick 0.2s ease;
}

.chat-input button:disabled {
    background: url('../GreyButton.png') center center / 100% 100% no-repeat;
    cursor: not-allowed;
    animation: none;
    transform: none;
    box-shadow: none;
}

@keyframes sendButtonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

@keyframes sendButtonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.chat-input button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.chat-input button:hover::before {
    width: 100%;
    height: 100%;
} 

/* Beta Chat Styles - Enhanced & Polished (Performance Optimized) */
.beta-chat-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    will-change: transform; /* Optimize for animations */
}

.beta-chat-section:hover {
    transform: translate3d(0, -2px, 0); /* Hardware acceleration */
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.beta-chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    will-change: transform; /* Optimize for animation */
}

.beta-chat-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 5s ease-in-out infinite;
    will-change: transform, opacity; /* Optimize for animation */
}

@keyframes shimmer {
    0% { transform: translate3d(-100%, 0, 0) rotate(0deg); }
    50% { transform: translate3d(100%, 0, 0) rotate(180deg); }
    100% { transform: translate3d(-100%, 0, 0) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale3d(1, 1, 1); }
    50% { opacity: 0.6; transform: scale3d(1.1, 1.1, 1); }
}

.beta-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.beta-chat-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.beta-chat-header h3::before {
    content: '🎮';
    font-size: 1.2em;
    animation: bounce 3s ease-in-out infinite;
    will-change: transform; /* Optimize for animation */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate3d(0, 0, 0); }
    40% { transform: translate3d(0, -5px, 0); }
    60% { transform: translate3d(0, -3px, 0); }
}

.beta-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff8a80 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.beta-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: badgeShine 3s ease-in-out infinite;
    will-change: transform; /* Optimize for animation */
}

@keyframes badgeShine {
    0% { transform: translate3d(-100%, 0, 0); }
    50% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(100%, 0, 0); }
}

.beta-description {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.beta-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffd89b 100%);
    color: #333;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 15px 25px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    will-change: transform; /* Optimize for animations */
}

.beta-chat-btn:hover {
    transform: translate3d(0, -3px, 0) scale3d(1.02, 1.02, 1); /* Hardware acceleration */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4d6 50%, #fff2d1 100%);
}

.beta-chat-btn:active {
    transform: translate3d(0, -1px, 0) scale3d(0.98, 0.98, 1);
}

.beta-chat-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Beta Chat Window Styles - Enhanced */
.beta-chat-active .chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    border-radius: 15px 15px 0 0;
    border-bottom: 3px solid #000;
    position: relative;
    overflow: hidden;
}

.beta-chat-active .chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: headerShimmer 5s ease-in-out infinite;
    will-change: transform; /* Optimize for animation */
}

@keyframes headerShimmer {
    0% { transform: translate3d(-100%, 0, 0); }
    50% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.beta-chat-active .chat-header h3 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.beta-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    border: 2px solid #000;
    border-radius: 15px;
    position: relative;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    will-change: transform; /* Optimize for animations */
}

.beta-message:hover {
    transform: translate3d(0, -2px, 0); /* Hardware acceleration */
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.beta-message::before {
    content: '🎮';
    position: absolute;
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: betaIconPulse 3s ease-in-out infinite;
    will-change: transform; /* Optimize for animation */
}

@keyframes betaIconPulse {
    0%, 100% { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.beta-message .message-content {
    padding: 15px 20px 15px 25px;
}

.beta-message .message-username {
    color: #ffd89b;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.beta-message .message-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.beta-message .message-text {
    color: #fff;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Welcome Message for Beta Chat */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 2px dashed #667eea;
    margin: 20px 0;
}

.welcome-message h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-message p {
    color: #666;
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Beta Chat Input Enhancement */
.beta-chat-active .chat-input {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid #667eea;
    border-radius: 0 0 15px 15px;
}

.beta-chat-active #message-input {
    border: 2px solid #667eea;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.beta-chat-active #send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.beta-chat-active #send-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

/* Responsive Design for Beta Chat */
@media (max-width: 768px) {
    .beta-chat-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .beta-chat-header h3 {
        font-size: 1.2rem;
    }
    
    .beta-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .beta-chat-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Loading Animation for Beta Chat */
.beta-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #667eea;
}

.beta-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: betaSpin 1s linear infinite;
    margin-left: 10px;
}

@keyframes betaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Beta Features Section */
.beta-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.beta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.beta-feature:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.beta-feature span:last-child {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Input Controls */
.input-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
    padding: 0 5px;
}

.char-count {
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.char-count.warning {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
}

.char-count.danger {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
}

#send-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(145deg, #e6e6e6 0%, #d4d4d4 50%, #b8b8b8 100%);
    color: #333;
    border: 2px solid #999;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Baloo 2', cursive;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

#send-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 50%, #c8c8c8 100%);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

#send-btn:active {
    transform: translateY(1px);
    background: linear-gradient(145deg, #d4d4d4 0%, #c8c8c8 50%, #b0b0b0 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

#send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(145deg, #cccccc 0%, #bbbbbb 50%, #aaaaaa 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.send-icon {
    font-size: 1rem;
}

.send-text {
    font-size: 0.9rem;
}

/* Enhanced Beta Chat Button */
.beta-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffd89b 100%);
    color: #333;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 15px 25px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.beta-chat-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4d6 50%, #fff2d1 100%);
}

.beta-chat-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.beta-chat-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
    will-change: transform; /* Optimize for animation */
}

.btn-text {
    font-size: 1rem;
}

/* Enhanced Message Input */
#message-input {
    width: 100%;
    min-height: 60px;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#message-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

#message-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Beta Chat Active State Enhancements */
.beta-chat-active #message-input {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
}

.beta-chat-active #message-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
    .beta-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .beta-feature {
        padding: 6px 10px;
    }
    
    .input-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .char-count {
        text-align: center;
        order: 2;
    }
    
    #send-btn {
        order: 1;
        justify-content: center;
    }
    
    #message-input {
        min-height: 50px;
        font-size: 0.9rem;
    }
}

/* Accessibility Enhancements */
.beta-chat-section:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.beta-chat-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#message-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .beta-chat-section {
        border-width: 4px;
    }
    
    .beta-badge {
        border-width: 3px;
    }
    
    .beta-chat-btn {
        border-width: 4px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .beta-chat-section::before,
    .beta-chat-section::after,
    .beta-chat-header h3::before,
    .beta-badge::before,
    .beta-message::before {
        animation: none;
    }
    
    .beta-chat-section:hover,
    .beta-chat-btn:hover,
    .beta-message:hover {
        transform: none;
    }
    
    .beta-feature:hover {
        transform: none;
    }
}

/* Beta join section styles */
.beta-join-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.beta-join-card {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
}

.beta-join-card h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.beta-join-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.beta-join-card .btn {
    background: linear-gradient(145deg, #48bb78, #38a169);
    border: 2px solid #2f855a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.beta-join-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.beta-join-card .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
} 