/* index.css — только то, что специфично для клиентской страницы.
   Общие стили (toast, confirm, кнопки, file-item и т.д.) — в common.css */

.container { max-width: 800px; }

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.app-header h2 { margin-bottom: 0; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-logout { background: #ef4444; color: white; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; }

@media (max-width: 600px) {
    .app-header { flex-direction: column; align-items: stretch; }
    .header-actions { justify-content: center; }
}

#login-screen { text-align: center; }
#login-screen input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e9d5ff;
    border-radius: 8px;
    font-size: 16px;
}
#login-screen button {
    width: 100%;
    padding: 12px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
#login-screen button:hover { background: #6d28d9; }
.hidden-field { display: none; }
#app-screen { display: none; }

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9d5ff;
}
.tab { text-align: center; flex: 1; }

.panel { display: none; }
.panel.active { display: block; }

.upload-area {
    border: 2px dashed #8b5cf6;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    background: #faf5ff;
    cursor: pointer;
    margin-bottom: 20px;
}
.upload-area-icon { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.upload-area p { margin: 4px 0; }
.upload-area small { font-size: 12px; color: #6b7280; }
.upload-area:hover { background: #f5f3ff; }

.file-list, .messages-list {
    max-height: 400px;
    overflow-y: auto;
}
.file-info { font-size: 16px; }

@media (max-width: 768px) {
    .file-info {
        font-size: 13px;
        align-items: flex-start;
        width: 100%;
    }
    .file-info strong { word-break: break-word; }
    .file-item > div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

.reply-box { margin-top: 15px; }

.file-item.pending-review {
    background: #dcfce7;
    border-color: #86efac;
}
.pending-badge {
    background: #16a34a;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.bulk-toolbar {
    background: #f5f3ff;
    border: 1px solid #e9d5ff;
}
#selected-count { font-size: 13px; color: #6b7280; }
