/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 4000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 24px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Stream Modal */
.stream-modal {
    width: 90vw;
    height: 80vh;
}

.stream-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    height: calc(80vh - 80px);
}

.stream-video {
    position: relative;
    background: #000;
}

.stream-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.stream-chat {
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-chat .chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.stream-chat .chat-input {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video Call Modal */
.video-call-modal {
    width: 80vw;
    height: 70vh;
}

.video-call-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#localVideo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    border-radius: 10px;
    border: 2px solid #4ecdc4;
    object-fit: cover;
}

.call-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

/* Private Show Modal */
.private-show-modal {
    width: 85vw;
    height: 75vh;
}

.token-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.token-rate i {
    color: #ffd700;
}

.private-show-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    height: calc(75vh - 80px);
}

.private-video {
    position: relative;
    background: #000;
}

.private-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.private-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.private-chat {
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Login/Register Modals */
.login-modal,
.register-modal {
    width: 400px;
    max-width: 90vw;
}

.login-form,
.register-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer a {
    color: #4ecdc4;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Token Modal */
.token-modal {
    width: 500px;
    max-width: 90vw;
}

.token-packages {
    padding: 30px;
    display: grid;
    gap: 20px;
}

.token-package {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.token-package:hover,
.token-package.selected {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-2px);
}

.token-package.popular {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.package-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.package-tokens {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4ecdc4;
}

.package-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.package-bonus {
    font-size: 14px;
    color: #ffd700;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    animation: toastSlideIn 0.3s ease-out;
}

.toast.error {
    border-left-color: #ff4757;
}

.toast.success {
    border-left-color: #2ed573;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Discover Cards (Dating) */
.discover-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
}

.discover-card {
    width: 300px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: absolute;
    cursor: grab;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.discover-card:hover {
    transform: scale(1.05);
    border-color: #4ecdc4;
}

.discover-card img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.discover-card-info {
    padding: 20px;
    text-align: center;
}

.discover-card-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.discover-card-age {
    color: #4ecdc4;
    margin-bottom: 15px;
}

.discover-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.discover-actions .btn-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.discover-actions .btn-icon.like {
    background: linear-gradient(45deg, #2ed573, #1dd1a1);
}

.discover-actions .btn-icon.pass {
    background: linear-gradient(45deg, #ff4757, #ff3742);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        height: 90vh;
        margin: 20px;
    }
    
    .stream-container,
    .private-show-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .stream-chat,
    .private-chat {
        height: 200px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #localVideo {
        width: 120px;
        height: 90px;
        top: 10px;
        right: 10px;
    }
    
    .login-modal,
    .register-modal,
    .token-modal {
        width: 95vw;
        margin: 20px;
    }
    
    .token-packages {
        padding: 20px;
    }
    
    .discover-card {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .stream-controls,
    .call-controls {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .discover-card {
        width: 260px;
        height: 360px;
    }
    
    .token-package {
        padding: 20px;
    }
    
    .package-tokens {
        font-size: 20px;
    }
    
    .package-price {
        font-size: 18px;
    }
}

/* Match Notification Styles */
.match-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: matchSlideIn 0.5s ease-out;
}

@keyframes matchSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.match-content {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    color: white;
}

.match-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.match-avatars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.match-avatars img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.match-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

/* Gift Modal Styles */
.gift-modal {
    width: 500px;
    max-width: 90vw;
}

.gift-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
}

.gift-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-item:hover,
.gift-item.selected {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.gift-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.gift-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.gift-cost {
    color: #ffd700;
    font-size: 14px;
}

/* Profile Modal Styles */
.profile-modal {
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
}

.profile-modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.profile-details {
    flex: 1;
}

.profile-details h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.profile-bio {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.5;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.profile-stats .stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.profile-stats .stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.profile-stats .stat-value {
    font-size: 16px;
    font-weight: bold;
}

.profile-actions {
    display: flex;
    gap: 15px;
}

/* Message Notification Styles */
.message-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content strong {
    display: block;
    margin-bottom: 5px;
}

/* No Content States */
.no-matches,
.no-favorites,
.no-more-cards,
.login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 20px 0;
}

.no-matches h3,
.no-favorites h3,
.no-more-cards h3,
.login-prompt h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.no-matches p,
.no-favorites p,
.no-more-cards p,
.login-prompt p {
    margin-bottom: 25px;
    opacity: 0.8;
}

/* Match Badge */
.match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Stream Message Styles */
.stream-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-username {
    font-weight: bold;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    opacity: 0.6;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
}

/* Tip and Gift Message Styles */
.tip-message,
.gift-message {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 12px;
    border-radius: 15px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Settings Form Styles */
.settings-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
}

.settings-form h4 {
    margin-bottom: 25px;
    font-size: 20px;
    color: #4ecdc4;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-form input,
.settings-form textarea,
.settings-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.settings-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Earnings Dashboard */
.earnings-dashboard {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
}

.earnings-dashboard h4,
.earnings-dashboard h5 {
    color: #4ecdc4;
    margin-bottom: 20px;
}

.earnings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.earning-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.earning-stat .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #4ecdc4;
    display: block;
    margin-bottom: 5px;
}

.earning-stat .stat-label {
    font-size: 14px;
    opacity: 0.7;
}

.payout-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.payout-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.payout-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

.recent-transactions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.transaction-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-description {
    flex: 1;
}

.transaction-amount {
    font-weight: bold;
    margin: 0 15px;
}

.transaction-amount.positive {
    color: #2ed573;
}

.transaction-amount.negative {
    color: #ff4757;
}

.transaction-date {
    font-size: 12px;
    opacity: 0.6;
}

/* Schedule Manager */
.schedule-manager {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
}

.schedule-manager h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
}

.schedule-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.schedule-form .form-group {
    margin-bottom: 15px;
}

.current-schedule {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

/* Button Variants */
.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .profile-modal-body {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image img {
        width: 150px;
        height: 200px;
    }
    
    .gift-selection {
        grid-template-columns: 1fr;
    }
    
    .match-actions {
        flex-direction: column;
    }
    
    .earnings-stats {
        grid-template-columns: 1fr;
    }
    
    .payout-form {
        flex-direction: column;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Emoji Picker Styles */
.emoji-picker {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 240px;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.emoji-item {
    font-size: 20px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* File Upload Button */
.file-upload-btn {
    margin-right: 5px;
}

.file-upload-btn:hover {
    background: rgba(78, 205, 196, 0.2);
}

/* Chat Input Enhancements */
.chat-input {
    position: relative;
}

.chat-input .btn-icon {
    flex-shrink: 0;
}

/* Image Message Styles */
.message-content img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-content img:hover {
    transform: scale(1.05);
}

/* Video Message Styles */
.message-content video {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
}

/* Connection Status Indicator */
.connection-status {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1500;
    transition: all 0.3s ease;
}

.connection-status.online {
    background: rgba(46, 213, 115, 0.9);
    color: white;
}

.connection-status.offline {
    background: rgba(255, 71, 87, 0.9);
    color: white;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.7;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Enhanced Button States */
.btn-icon.disabled {
    opacity: 0.5;
    background: rgba(255, 71, 87, 0.2);
}

.btn-icon.active {
    background: rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

/* Improved Modal Animations */
.modal.active .modal-content {
    animation: modalBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.loading-text {
    color: white;
    margin-left: 10px;
    font-size: 14px;
}

/* Enhanced Responsive Design */
@media (max-width: 480px) {
    .emoji-picker {
        grid-template-columns: repeat(4, 1fr);
        max-width: 160px;
    }
    
    .message-content img,
    .message-content video {
        max-width: 150px;
        max-height: 150px;
    }
}