/* Глобальні стилі */
:root {
    --primary-color: #7289da;
    --primary-dark: #5d6dbd;
    --primary-darker: #4a5aa3;
    --background-dark: #36393f;
    --background-darker: #2f3136;
    --background-darkest: #202225;
    --text-color: #dcddde;
    --text-muted: #72767d;
    --text-light: #ffffff;
    --success-color: #43b581;
    --danger-color: #f04747;
    --warning-color: #faa61a;
    --online-color: #3ba55c;
    --offline-color: #747f8d;
    --idle-color: #faa61a;
    --dnd-color: #ed4245;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

input, textarea {
    background-color: var(--background-darker);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-color);
    padding: 10px;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(114, 137, 218, 0.3);
}

.hidden {
    display: none !important;
}

.mobile-only {
    display: none;
}

/* Сповіщення */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: var(--background-darker);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 15px;
    width: 300px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    animation: slideIn 0.3s forwards;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification-icon {
    font-size: 20px;
}

.notification-message {
    flex: 1;
}

.notification-close {
    color: var(--text-muted);
    cursor: pointer;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Модальні вікна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: var(--background-darker);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    background-color: var(--background-darkest);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.modal-close {
    color: var(--text-muted);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-content {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background-color: var(--background-darkest);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.modal-btn.cancel {
    background-color: var(--background-darker);
    color: var(--text-color);
}

.modal-btn.confirm {
    background-color: var(--primary-color);
    color: white;
}

.modal-btn.confirm:hover {
    background-color: var(--primary-dark);
}

/* Авторизація */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--background-darkest), var(--background-dark));
    z-index: 1000;
}

.auth-form {
    background-color: var(--background-darker);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--background-darkest);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
    background-color: var(--background-darkest);
}

.tab-btn.active {
    color: var(--text-light);
    background-color: var(--background-darker);
    border-bottom: 2px solid var(--primary-color);
}

.auth-content {
    padding: 30px;
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group .toggle-password {
    left: auto;
    right: 12px;
    cursor: pointer;
}

.input-group input {
    width: 100%;
    padding-left: 40px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.social-auth {
    margin-top: 30px;
    text-align: center;
}

.social-auth p {
    margin-bottom: 15px;
    color: var(--text-muted);
    position: relative;
}

.social-auth p::before, .social-auth p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--background-darkest);
}

.social-auth p::before {
    left: 0;
}

.social-auth p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
}

.social-btn.google {
    background-color: #db4437;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn:hover {
    opacity: 0.9;
}

.avatar-upload {
    margin: 20px 0;
    text-align: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--background-darkest);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview i {
    font-size: 30px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.avatar-preview span {
    font-size: 12px;
    color: var(--text-muted);
}

.terms {
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.terms input {
    margin-right: 10px;
}

/* Головний інтерфейс */
.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 300px;
    background-color: var(--background-darker);
    border-right: 1px solid var(--background-darkest);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    background-color: var(--background-darkest);
    border-bottom: 1px solid var(--background-darkest);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-bottom: 15px;
}

.user-profile:hover {
    background-color: var(--background-darkest);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile i {
    color: var(--text-muted);
    font-size: 12px;
}

.search-bar {
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding-left: 35px;
    background-color: var(--background-dark);
    border: none;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--background-darkest);
}

.sidebar-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
    background-color: var(--background-darkest);
    border-bottom: 2px solid transparent;
}

.sidebar-tab i {
    margin-right: 5px;
}

.sidebar-tab.active {
    color: var(--text-light);
    border-bottom-color: var(--primary-color);
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
    cursor: pointer;
    border-radius: var(--border-radius);
    margin: 0 5px;
}

.contact-item:hover {
    background-color: var(--background-darkest);
}

.contact-item.active {
    background-color: var(--primary-darker);
}

.contact-avatar {
    position: relative;
}

.contact-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--background-darker);
}

.contact-status.online {
    background-color: var(--online-color);
}

.contact-status.offline {
    background-color: var(--offline-color);
}

.contact-status.idle {
    background-color: var(--idle-color);
}

.contact-status.dnd {
    background-color: var(--dnd-color);
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-last-message {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.contact-time {
    font-size: 12px;
    color: var(--text-muted);
}

.unread-count {
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.new-chat-btn {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    margin: 10px;
    border-radius: var(--border-radius);
}

.new-chat-btn:hover {
    background-color: var(--primary-dark);
}

.new-chat-btn i {
    margin-right: 5px;
}

/* Панель профілю */
.user-profile-panel {
    width: 300px;
    background-color: var(--background-darker);
    border-right: 1px solid var(--background-darkest);
    display: flex;
    flex-direction: column;
}

.profile-header {
    padding: 15px;
    background-color: var(--background-darkest);
    border-bottom: 1px solid var(--background-darkest);
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-header h3 {
    font-weight: 500;
}

.back-btn {
    color: var(--text-muted);
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.back-btn:hover {
    background-color: var(--background-dark);
    color: var(--text-color);
}

.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.profile-avatar-edit {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background-color: var(--background-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.avatar-edit-btn:hover {
    background-color: var(--background-darkest);
}

.profile-info {
    margin-bottom: 30px;
}

.info-field {
    margin-bottom: 20px;
}

.info-field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-field span {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--background-darkest);
}

.editable-field {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--background-darkest);
}

.editable-field span {
    flex: 1;
    border-bottom: none;
}

.edit-btn {
    color: var(--text-muted);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.edit-btn:hover {
    background-color: var(--background-dark);
    color: var(--text-color);
}

.edit-field {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.edit-field input {
    flex: 1;
    padding: 8px;
}

.save-btn, .cancel-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.save-btn {
    background-color: var(--success-color);
    color: white;
}

.cancel-btn {
    background-color: var(--background-dark);
    color: var(--text-color);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-action-btn {
    padding: 12px;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-action-btn:hover {
    background-color: var(--background-darkest);
}

.profile-action-btn i {
    width: 20px;
    text-align: center;
}

.logout-btn {
    color: var(--danger-color);
    margin-top: 20px;
}

/* Панель нового чату */
.new-chat-panel {
    width: 300px;
    background-color: var(--background-darker);
    border-right: 1px solid var(--background-darkest);
    display: flex;
    flex-direction: column;
}

.new-chat-header {
    padding: 15px;
    background-color: var(--background-darkest);
    border-bottom: 1px solid var(--background-darkest);
    display: flex;
    align-items: center;
    gap: 15px;
}

.new-chat-header h3 {
    font-weight: 500;
}

.new-chat-search {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid var(--background-darkest);
}

.new-chat-search i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.new-chat-search input {
    width: 100%;
    padding-left: 35px;
    background-color: var(--background-dark);
    border: none;
}

.new-chat-contacts {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.new-chat-contact {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 10px;
    cursor: pointer;
}

.new-chat-contact:hover {
    background-color: var(--background-darkest);
}

.new-chat-contact img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.new-chat-contact-name {
    flex: 1;
    font-weight: 500;
}

/* Чат */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--background-dark);
    position: relative;
}

.chat-placeholder {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.placeholder-content {
    max-width: 400px;
}

.placeholder-icon {
    width: 100px;
    height: 100px;
    background-color: var(--background-darker);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 40px;
}

.chat-placeholder h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

.chat-placeholder p {
    color: var(--text-muted);
}

.active-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 15px;
    background-color: var(--background-darker);
    border-bottom: 1px solid var(--background-darkest);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-partner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-partner-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.partner-details {
    flex: 1;
    min-width: 0;
}

.partner-details h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-details p {
    font-size: 13px;
    color: var(--text-muted);
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    background-color: var(--background-dark);
}

.chat-action-btn:hover {
    background-color: var(--background-darkest);
    color: var(--text-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-image: url('assets/chat-bg.png');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message-incoming {
    align-self: flex-start;
}

.message-outgoing {
    align-self: flex-end;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message-incoming .message-content {
    background-color: var(--background-darker);
    border-top-left-radius: 5px;
}

.message-outgoing .message-content {
    background-color: var(--primary-color);
    color: white;
    border-top-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 3px;
}

.message-outgoing .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.message-status {
    font-size: 10px;
}

.message-media {
    max-width: 100%;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.chat-input-container {
    padding: 15px;
    background-color: var(--background-darker);
    border-top: 1px solid var(--background-darkest);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-actions {
    display: flex;
    gap: 5px;
}

.input-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.input-action-btn:hover {
    background-color: var(--background-darkest);
    color: var(--text-color);
}

.chat-input-wrapper {
    flex: 1;
    background-color: var(--background-dark);
    border-radius: 20px;
    padding: 5px 15px;
    max-height: 150px;
    overflow-y: auto;
}

.chat-input {
    min-height: 20px;
    outline: none;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.send-btn:hover {
    background-color: var(--primary-dark);
}

.send-btn:disabled {
    background-color: var(--background-dark);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Інформація про чат */
.chat-info-panel {
    width: 300px;
    background-color: var(--background-darker);
    border-left: 1px solid var(--background-darkest);
    display: flex;
    flex-direction: column;
}

.chat-info-header {
    padding: 15px;
    background-color: var(--background-darkest);
    border-bottom: 1px solid var(--background-darkest);
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-info-header h3 {
    font-weight: 500;
}

.chat-info-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-info-group {
    margin-bottom: 30px;
}

.chat-info-group h4 {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.chat-participants {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-participant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--border-radius);
}

.chat-participant:hover {
    background-color: var(--background-darkest);
}

.chat-participant img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-participant-name {
    flex: 1;
    font-weight: 500;
}

.media-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--background-darkest);
}

.media-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.media-tab.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.media-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.chat-info-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.chat-info-btn {
    padding: 12px;
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-info-btn:hover {
    background-color: var(--background-darkest);
}

.chat-info-btn i {
    width: 20px;
    text-align: center;
}

.chat-info-btn.danger {
    color: var(--danger-color);
}

/* Емодзі пікер */
.emoji-picker {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 350px;
    background-color: var(--background-darker);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 100;
    overflow: hidden;
}

/* Дзвінок */
.call-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background-darkest);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 30px;
}

.call-partner-info {
    margin-bottom: 40px;
}

.call-partner-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
}

.call-partner-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.call-status {
    color: var(--text-muted);
    font-size: 18px;
}

.call-timer {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.call-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.call-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    min-width: 70px;
}

.call-action-btn i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-color: var(--background-darker);
}

.call-action-btn span {
    font-size: 12px;
}

.call-action-btn.mute i {
    background-color: var(--background-darker);
}

.call-action-btn.speaker i {
    background-color: var(--background-darker);
}

.call-action-btn.video i {
    background-color: var(--background-darker);
}

.call-action-btn.end-call i {
    background-color: var(--danger-color);
    color: white;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .sidebar, .user-profile-panel, .new-chat-panel, .chat-info-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;
    }
    
    .chat-container {
        width: 100%;
    }
    
    .chat-header {
        padding: 10px;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .chat-input-container {
        padding: 10px;
    }
    
    .emoji-picker {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 70px;
    }
    
    .auth-form {
        max-width: 100%;
        margin: 20px;
    }
    
    .modal {
        max-width: 100%;
        margin: 20px;
    }
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s forwards;
}

.slide-up {
    animation: slideUp 0.3s forwards;
}