/* Translation Chat - Styles */

#tc-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Auth Screen */
.tc-box {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tc-logo {
    text-align: center;
    margin-bottom: 30px;
}

.tc-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.tc-logo h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.tc-logo p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Tabs */
.tc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tc-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tc-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Forms */
.tc-form {
    display: none;
}

.tc-form.active {
    display: block;
}

.tc-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.tc-input:focus {
    outline: none;
    border-color: #667eea;
}

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

.tc-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.tc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
#tc-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

#tc-message.error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
    display: block;
}

#tc-message.success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
    display: block;
}

/* Chat Interface */
.tc-chat-container {
    display: flex;
    height: 600px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Sidebar */
.tc-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.tc-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.tc-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tc-btn-icon:hover {
    background: #667eea;
    color: white;
}

#tc-rooms-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.tc-room-item {
    padding: 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tc-room-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.tc-room-item.active {
    background: #667eea;
    color: white;
}

/* Main Chat Area */
.tc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tc-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.tc-icon-big {
    font-size: 64px;
    margin-bottom: 20px;
}

.tc-chat-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tc-chat-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.tc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tc-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.tc-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.tc-msg-content {
    flex: 1;
}

.tc-msg-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.tc-msg-text {
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 12px;
    display: inline-block;
    max-width: 70%;
    word-wrap: break-word;
}

.tc-message.own .tc-msg-text {
    background: #667eea;
    color: white;
}

/* Input Area */
.tc-input-area {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

#tc-msg-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
}

#tc-msg-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Modal */
.tc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tc-modal.active {
    display: flex;
}

.tc-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
}

.tc-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
}

.tc-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tc-modal-buttons .tc-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .tc-chat-container {
        height: 500px;
    }
    
    .tc-sidebar {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .tc-chat-container {
        flex-direction: column;
        height: auto;
    }
    
    .tc-sidebar {
        width: 100%;
        max-height: 200px;
    }
    
    .tc-main {
        height: 400px;
    }
}
