.undo-send-btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    animation: slideUpFade 0.3s ease;
}

.undo-send-btn:hover {
    background: var(--accent-hover);
    transform: translateX(-50%) translateY(-2px);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.modal-large {
    max-width: 600px;
    max-height: 80vh;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 8px 0;
}

.media-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

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

.voice-item {
    flex-direction: column;
    gap: 8px;
    color: var(--accent);
}

.voice-item svg {
    width: 32px;
    height: 32px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: var(--surface-hover);
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 8px;
    color: var(--accent);
}

.file-icon svg {
    width: 24px;
    height: 24px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.file-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

.group-name-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 16px;
}

.group-name-input:focus {
    outline: none;
    border-color: var(--accent);
}

.group-members-list h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.member-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.member-checkbox:hover {
    background: var(--surface-hover);
}

.member-checkbox input {
    margin: 0;
}

.member-checkbox span {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mention-suggestions, .hashtag-suggestions {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.mention-item, .hashtag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mention-item:hover, .hashtag-item:hover {
    background: var(--surface-hover);
}

.poll-message {
    padding: 12px;
    background: var(--surface);
    border-radius: 12px;
}

.poll-question {
    font-weight: 600;
    margin-bottom: 12px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.poll-option:hover {
    background: var(--surface-hover);
}

.poll-option.voted {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
}

.poll-votes {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
}

.secret-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.secret-chat-modal {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    max-width: 400px;
}

.secret-chat-modal h3 {
    margin: 0 0 16px 0;
}

.secret-chat-modal input {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.global-search-input {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.search-result-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.search-result-item:hover {
    background: var(--surface-hover);
}

.search-result-chat {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.search-result-time {
    font-size: 11px;
    color: var(--text-muted);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.settings-item:hover {
    background: var(--bg-hover);
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-item-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-hover);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.settings-select {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-select:hover {
    border-color: var(--accent);
}

.settings-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.settings-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.settings-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.settings-btn svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.settings-btn.danger {
    color: var(--danger);
}

.settings-btn.danger svg {
    color: var(--danger);
}

.settings-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}


