.smart-chat-card-wrap {
    max-width: 740px;
    margin: 34px auto 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: #f8fafb;
    padding: 0 10px;
}
.smart-chat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(23, 43, 99, 0.03), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 32px 32px 38px;
    border: 1px solid #e4e7ed;
}
.smart-chat-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 22px;
    color: #181818;
    letter-spacing: -0.5px;
    border-bottom: 3px solid #25D366;
    padding-bottom: 13px;
    background: transparent;
}
.nav-tab-wrapper {
    margin-bottom: 0px;
    border-bottom: none;
    background: transparent;
}
.nav-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #475063;
    padding: 11px 24px 8px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1px;
    border-radius: 8px 8px 0 0;
    transition: color .16s, border-bottom .17s;
}
.nav-tab.nav-tab-active,
.nav-tab:focus,
.nav-tab[aria-selected="true"] {
    background: #fff;
    border-bottom: 3px solid #25D366;
    color: #179954;
    font-weight: 700;
    outline: none;
}
.tab-section {
    background: #fff;
    padding: 28px 18px 24px 18px;
    border: 1px solid #eef1f5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 22px;
    display: none;
}
.tab-section.active {
    display: block;
}
.smart-chat-field {
    margin-bottom: 21px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.smart-chat-field label {
    font-weight: 700;
    margin-bottom: 2px;
    color: #212b36;
    font-size: 15px;
}
.smart-chat-field input[type="text"],
.smart-chat-field input[type="number"],
.smart-chat-field select,
.smart-chat-field textarea {
    border: 1.5px solid #dbe1ea;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 1.07rem;
    transition: border-color 0.23s, box-shadow 0.16s;
    background: #f7fafd;
    outline: none;
}
.smart-chat-field input:focus,
.smart-chat-field select:focus,
.smart-chat-field textarea:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 2px #25D36630;
}
.smart-color-field {
    max-width: 110px;
}
.toggle-field {
    flex-direction: row;
    align-items: center;
    gap: 13px;
}
.smart-toggle {
    position: relative;
    width: 44px;
    height: 22px;
    display: inline-block;
}
.smart-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.smart-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #b1bbc7;
    transition: .4s;
    border-radius: 34px;
}
.smart-toggle-slider:before {
    position: absolute;
    content: "";
    height: 17px; width: 17px; left: 3px; bottom: 2.5px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}
.smart-toggle input:checked + .smart-toggle-slider {
    background-color: #25D366;
}
.smart-toggle input:checked + .smart-toggle-slider:before {
    transform: translateX(20px);
}
.smart-toggle-label {
    font-weight: 700;
    font-size: 14.2px;
    color: #222;
}
.upload-icon-button, .remove-member-button, .upload-avatar-button, #add-member-button {
    margin-top: 6px;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(36, 214, 102, 0.07);
    transition: background .18s;
}
.upload-icon-button:hover, .remove-member-button:hover, .upload-avatar-button:hover, #add-member-button:hover {
    background-color: #179954;
}
.icon-preview,
.live-preview .preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #f7fafc;
    border-radius: 7px;
    min-height: 42px;
    min-width: 42px;
    max-width: 60px;
    max-height: 60px;
    border: 1px solid #e6eaea;
}
.icon-preview svg,
.live-preview .preview-button svg {
    width: 32px !important;
    height: 32px !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.icon-preview img,
.live-preview .preview-button img {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}
/* --- Card look for tables --- */
.team-members-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(23, 43, 99, 0.05);
    overflow: hidden;
}
.team-members-table th,
.team-members-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f2f4f7;
    text-align: left;
    font-size: 15px;
    background: transparent;
    vertical-align: middle;
}
.team-members-table th {
    font-weight: 700;
    color: #253048;
    background: #f6f8fb;
}
.team-members-table tr:last-child td {
    border-bottom: none;
}
.team-members-table tr {
    background: #fff;
    transition: background 0.18s;
}
.team-members-table tr:hover {
    background: #f5fbf7;
}

/* Inputs in table: uniform look */
.team-members-table input[type="text"] {
    width: 100%;
    background: #f7fafc;
    border: 1.5px solid #e4e7ed;
    border-radius: 5px;
    padding: 8px 8px;
    font-size: 14px;
    transition: border-color 0.18s;
}
.team-members-table input[type="text"]:focus {
    border-color: #25D366;
    background: #fff;
}

/* Avatar thumbnail */
.avatar-preview img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(36,214,102,0.07);
    background: #f7fafc;
    border: 1px solid #e5e7ed;
    display: block;
    margin: 0 auto;
}

/* Upload Button style in table */
.upload-avatar-button {
    margin-top: 0;
    background: #f6f8fa;
    color: #25d366;
    border: 1.5px solid #d7e7df;
    padding: 5px 13px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: none;
    transition: background 0.18s, color 0.18s;
    outline: none;
}
.upload-avatar-button:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

/* Remove Button (cross) */
.remove-member-button {
    color: #b32d2e;
    background: #f8f9fa;
    border: 1.5px solid #eee;
    border-radius: 5px;
    font-size: 19px;
    padding: 5px 13px;
    transition: background 0.18s, color 0.18s;
    margin-left: 4px;
}
.remove-member-button:hover {
    background: #ffeaea;
    color: #a41a1a;
}

/* Checkbox style in table */
.team-members-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #25D366;
    margin: 0 auto;
    display: block;
}

/* Add Member Button, full width and modern */
#add-member-button {
    display: block;
    width: 210px;
    margin: 22px auto 0 auto;
    background: #25d366;
    border-radius: 8px;
    color: #fff;
    padding: 14px 0;
    font-weight: 700;
    font-size: 1.09rem;
    border: none;
    transition: background 0.17s;
    box-shadow: 0 2px 10px rgba(36,214,102,0.07);
    text-align: center;
}
#add-member-button:hover {
    background: #179954;
}
.smart-chat-avatar-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.smart-chat-avatar-preview label {
    font-weight: 700;
    color: #212b36;
    font-size: 15px;
}
.avatar-preview img {
    max-width: 37px;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.smart-chat-save-bar {
    position: sticky;
    bottom: 0;
    background: #fafbfc;
    padding: 18px 0 8px;
    margin-top: 22px;
    border-top: 1px solid #e4e7ed;
    border-radius: 0 0 12px 12px;
    text-align: right;
}
.smart-chat-save-bar .button {
    margin-bottom: 0;
    font-weight: 700;
    padding: 13px 36px;
    font-size: 1.13rem;
    background: #25D366;
    border-radius: 7px;
    color: #fff;
    border: none;
    transition: background .18s;
}
.smart-chat-save-bar .button:hover {
    background: #179954;
}
@media (max-width: 700px) {
    .smart-chat-card { padding: 18px 8px 26px; }
    .tab-section { padding: 16px 3vw 12px 3vw; }
}
@media (max-width: 500px) {
    .smart-chat-card-wrap { margin: 10px 1vw 20px; }
    .smart-chat-card { padding: 7px 2vw 12px; }
    .tab-section { padding: 9px 1vw 6px 1vw; }
}

