.smc1-app {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
}

/* Левая колонка - 200px */
.smc1-sidebar {
    width: 200px;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.smc1-logo {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.smc1-logo h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.smc1-logo span {
    font-size: 11px;
    opacity: 0.6;
}

.smc1-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smc1-chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.smc1-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.smc1-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.smc1-btn-start {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.smc1-sidebar-footer {
    padding: 20px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.smc1-user-info {
    margin-bottom: 8px;
    text-align: center;
}

.smc1-connection-status {
    font-size: 10px;
    text-align: center;
    opacity: 0.8;
}

/* Правая колонка - чат */
.smc1-main {
    flex: 1;
    overflow-y: auto;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
}

.smc1-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.smc1-welcome-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.smc1-welcome h1 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 12px;
}

.smc1-welcome p {
    color: #718096;
    font-size: 18px;
    margin-bottom: 32px;
}

.smc1-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.smc1-feature {
    background: white;
    padding: 12px 24px;
    border-radius: 40px;
    color: #667eea;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Контейнер чата */
.smc1-chat-container {
	padding: 0px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}

.smc1-chat-header {
height: 0px !important; /* ************************************************* */
/*    padding: 20px 24px; */
overflow: hidden; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0;
}

.smc1-chat-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.smc1-chat-header p {
    font-size: 12px;
    opacity: 0.9;
}

.smc1-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

.smc1-message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.smc1-message-own {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-bottom-right-radius: 4px;
}

.smc1-message-other {
    align-self: flex-start;
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.smc1-message-info {
    font-size: 11px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.smc1-message-text {
    font-size: 14px;
    line-height: 1.4;
}

.smc1-message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.smc1-message-file:hover {
    background: rgba(0, 0, 0, 0.1);
}

.smc1-message-file-icon {
    font-size: 24px;
}

.smc1-message-file-info {
    flex: 1;
}

.smc1-message-file-name {
    font-size: 13px;
    font-weight: 500;
}

.smc1-message-file-size {
    font-size: 11px;
    opacity: 0.7;
}

.smc1-file-saved {
    color: #10b981;
}

/* Область ввода */
.smc1-input-area {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: white;
}

.smc1-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.smc1-attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 12px;
}

.smc1-attachment-item .remove {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
}

.smc1-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.smc1-message-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    max-height: 100px;
}

.smc1-message-input:focus {
    outline: none;
    border-color: #667eea;
}

.smc1-attach-btn, .smc1-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.smc1-attach-btn {
    background: #e9ecef;
    color: #2d3748;
}

.smc1-send-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.smc1-attach-btn:hover, .smc1-send-btn:hover {
    transform: scale(1.05);
}

/* Прогресс-бар для файлов */
.smc1-file-progress {
    position: relative;
    width: 30px;
    height: 30px;
    margin-left: 10px;
}

.smc1-circular-progress {
    transform: rotate(-90deg);
}

.smc1-circular-progress circle {
    fill: none;
    stroke: #667eea;
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s;
}

.smc1-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
}

/* Файловый менеджер для маркета */
.smc1-market-files {
    max-height: 400px;
    overflow-y: auto;
}

.smc1-market-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.smc1-market-file-item:hover {
    background: #f8f9fa;
}

.smc1-market-file-item input {
    margin-right: 10px;
}

/* Модальное окно */
.smc1-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.smc1-modal-content {
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    animation: smc1-modalSlideIn 0.3s ease;
}

.smc1-modal-large {
    max-width: 900px;
    width: 90%;
}

@keyframes smc1-modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.smc1-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smc1-modal-header h3 {
    font-size: 20px;
    color: #2d3748;
}

.smc1-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.2s;
}

.smc1-modal-close:hover {
    color: #ef4444;
}

.smc1-modal-body {
    padding: 24px;
    color: #4a5568;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

.smc1-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.smc1-file-source-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.smc1-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.smc1-btn-primary {
    background: #667eea;
    color: white;
}

.smc1-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.smc1-btn-secondary {
    background: #6c757d;
    color: white;
}

.smc1-btn-secondary:hover {
    background: #5a6268;
}

.smc1-btn-danger {
    background: #ef4444;
    color: white;
}

.smc1-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #2d3748;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    z-index: 1100;
    display: none;
    animation: smc1-slideInRight 0.3s ease;
}

@keyframes smc1-slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Добавьте эти стили в конец файла smc1-style.css */

/* Улучшенный статус подключения */
.smc1-connection-status {
    font-size: 10px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.smc1-connection-status.online {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.smc1-connection-status.offline {
    background: rgba(239, 68, 68, 0.2);
}

.smc1-connection-status.connecting {
    background: rgba(245, 158, 11, 0.2);
    animation: smc1-pulse 1.5s ease-in-out infinite;
}

@keyframes smc1-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Уведомление о статусе сервера */
.smc1-server-status-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    animation: smc1-slideInRight 0.3s ease;
}

/* Консольные сообщения (визуально) */
.smc1-console-log {
    position: fixed;
    bottom: 10px;
    left: 210px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #10b981;
    font-family: monospace;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 1000;
    max-height: 100px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.smc1-console-log.show {
    display: block;
}

.smc1-console-log .log-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 0;
    font-size: 10px;
}

.smc1-console-log .log-entry.error {
    color: #ef4444;
}

.smc1-console-log .log-entry.warning {
    color: #f59e0b;
}

.smc1-console-log .log-entry.success {
    color: #10b981;
}

/* Добавьте эти стили в конец файла smc1-style.css */

.smc1-message-own {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-bottom-right-radius: 4px;
}

.smc1-message-other {
    align-self: flex-start;
    background: white;
    color: #2d3748;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.smc1-message-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.smc1-message-own .smc1-message-file {
    background: rgba(255, 255, 255, 0.2);
}

.smc1-message-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.smc1-message-file-icon {
    font-size: 24px;
    transition: all 0.2s;
}

.smc1-file-saved-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 10px;
    background: #10b981;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
}

.smc1-attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 12px;
    animation: smc1-fadeIn 0.3s ease;
}

@keyframes smc1-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.smc1-attachment-item .remove {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.smc1-attachment-item .remove:hover {
    background: #ef4444;
    color: white;
}

/* Стили для прогресса отправки файлов */
.smc1-message-file .smc1-file-progress {
    position: relative;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    flex-shrink: 0;
}

.smc1-circular-progress {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.smc1-circular-progress circle {
    fill: none;
    stroke-width: 2.5;
    transition: stroke-dashoffset 0.3s ease;
}

.smc1-circular-progress circle:first-child {
    stroke: #e0e0e0;
}

.smc1-circular-progress circle:last-child {
    stroke: #10b981;
    stroke-dasharray: 81.68;
    stroke-dashoffset: 81.68;
}

.smc1-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: bold;
    color: #10b981;
}

/* Анимация для временных сообщений */
.smc1-message[data-temp-id] {
    animation: smc1-pulseGlow 1s ease-in-out infinite;
}

@keyframes smc1-pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}


/* Стили для секций чатов */
.smc1-chat-section {
    margin-bottom: 15px;
}

.smc1-chat-section h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin: 10px 0 8px 0;
    padding-left: 8px;
    letter-spacing: 0.5px;
}

.smc1-private-chat-btn {
    background: rgba(16, 185, 129, 0.2) !important;
    border-left: 3px solid #10b981 !important;
}

.smc1-group-chat-btn {
    background: rgba(139, 92, 246, 0.2) !important;
    border-left: 3px solid #8b5cf6 !important;
}

.smc1-chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.smc1-nav-btn {
    transition: all 0.2s ease;
}

.smc1-nav-btn:hover {
    transform: translateX(4px);
}
