.projects_page {
    width: 100%;
    margin-top: 20px;
    padding: 40px;
}

.projects_wrapper {
    width: 1250px;
    margin: 30px auto;
    padding: 40px;
    background-color: white;
    border-radius: 20px;
    height: 90%;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 20px;
    padding: 30px;
    background-color: #f7f7f7;
    position: relative;
}

.project-card:hover {
    background-color: #f7f7f7;
}

.project-card:hover .project-menu {
    display: block;
    }

.create-project-card {
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.project-menu {
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
    display: none;
}

.project-actions {
    cursor: pointer;
    display: none;
    position: absolute; /* Add absolute positioning to the icon */
    top: 40px; /* Adjust the top position to match the menu */
    right: -30px; /* Adjust the right position to match the menu */
    z-index: 9;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
}

.project-actions-buttons {
    display: flex;
    flex-direction: column; /* Arrange items in a row */
    margin-bottom: 10px; /* Add margin between the button rows */
}

.project-actions-icon {
    margin-right: 5px; /* Add margin between icons and text */
}

.project-actions-text {
    font-size: 14px; /* Adjust font size as needed */
}


.menu-icon {
    width: 16px;
    height: 16px;
    position: absolute; /* Add absolute positioning to the icon */
    top: 20px; /* Adjust the top position to match the menu */
    right: 30px; /* Adjust the right position to match the menu */
}

.remove-icon{
    display: flex;
    flex-direction: row;
    padding: 5px;
    margin: 5px 0px;
}

.remove-icon:hover{
    background-color: #f7f7f7;
}

.edit-icon {
    display: flex;
    flex-direction: row;
    padding: 5px;
    margin: 5px 0px;
}

.edit-icon:hover{
    background-color: #f7f7f7;
}

.share-icon {
    display: flex;
    flex-direction: row;
    padding: 5px;
    margin: 5px 0px;
}

.share-icon:hover{
    background-color: #f7f7f7;
}

/* Conversation highlight styling */
.conversation-highlight {
    background-color: #9e82f13f;
    color: black;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin: 4px 0;
}

/* Create chatbot pop up */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #888;
    border-radius: 20px;
    width: 550px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Share modal specific styling */
#shareProjectModal .modal-content {
    width: 600px;
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}

/* Share modal sections */
.share-input-section,
.share-button-section,
.share-members-section {
    margin-bottom: 20px;
}

/* Share email input */
.share-email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.share-email-input:focus {
    outline: none;
    border-color: #9878F7;
    box-shadow: 0 0 0 2px rgba(152, 120, 247, 0.2);
}

/* Share error and success messages */
.share-error {
    color: #dc3545;
    display: none;
    font-size: 12px;
    margin-top: 5px;
}

.share-success {
    color: #28a745;
    display: none;
    font-size: 12px;
    margin-top: 5px;
}

/* Share add button */
.share-add-btn {
    width: 100%;
}

.share-add-btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Share members list */
.share-members-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
    padding-left: 5px;
}

/* Share pending invitations */
.share-pending-invitations {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f5f5f5;
    padding-left: 5px;
}

.share-pending-invitations .pending-invitation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: #666;
    font-style: italic;
}

.share-pending-invitations .pending-invitation:last-child {
    border-bottom: none;
}

.share-pending-invitations .pending-invitation .pending-email {
    font-weight: bold;
    color: #666;
}

.share-pending-invitations .pending-invitation .pending-status {
    font-size: 12px;
    color: #999;
}

.share-pending-invitations .pending-invitation .remove-pending-btn {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #666;
    cursor: pointer;
}

.share-pending-invitations .pending-invitation .remove-pending-btn:hover {
    background-color: #e0e0e0;
}

/* removed share link styles */

.modal-delete {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px;
    border: 1px solid #888;
    border-radius: 20px;
    width: 450px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.card-text {
    margin-bottom: 2px;
    line-height: 2.2;
}

/* Project header styling */
.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.project-logo {
    margin-right: 12px;
    flex-shrink: 0;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #9878F7 0%, #6667AB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(152, 120, 247, 0.3);
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    padding: 2px;
}

.card-title {
    margin: 0;
    flex-grow: 1;
}

/* Trend arrow styling */
.trend-arrow {
    font-weight: bold;
    font-size: 14px;
    margin-left: 4px;
}

.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.onboarding-modal {
    background: #fff;
    width: 900px;          /* increased */
    height: 780px;
    max-width: 90vw;
    border-radius: 14px;
    padding: 36px 40px;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.onboarding-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.onboarding-progress .step {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
}

.onboarding-progress .step.active {
    background: #6c5ce7; /* match your purple */
}

.onboarding-step {
    display: none;
    text-align: center;
    padding-top: 15px;
}

.onboarding-step.active {
    display: block;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.onboarding-step h2 {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 8px;
}

.onboarding-step p {
    color: #666;
    margin-bottom: 24px;
    font-size: 18px;
}
.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    padding: 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
}

.option-btn.selected {
    border-color: #6c5ce7;
    background: #f1efff;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.option-list.icons .option-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 15px;
}

.option-btn span {
    font-weight: 600;
}

.option-btn small {
    font-size: 12px;
    color: #777;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tool-btn {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
}

.tool-btn.selected {
    border-color: #6c5ce7;
    background: #f1efff;
}

.url-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 12px;
    height: 48px;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-input:focus-within {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
    background: #fff;
}

.url-prefix {
    color: #888;
    font-size: 14px;
    margin-right: 6px;
    user-select: none;
}

.url-input input {
    border: none;
    outline: none;
    font-size: 15px;
    flex: 1;
    background: transparent;
}

.url-input input::placeholder {
    color: #aaa;
}

.role-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.role-card {
    height: 140px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.role-card img {
    width: 34px;
    height: 34px;
    opacity: 0.7;
}

.role-card span {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
}

.role-card:hover {
    border-color: #6c5ce7;
    box-shadow: 0 8px 24px rgba(108,92,231,0.12);
    transform: translateY(-2px);
}

.role-card.selected {
    border-color: #6c5ce7;
    background: #f5f3ff;
    box-shadow:
        0 0 0 2px rgba(108,92,231,0.25),
        0 10px 30px rgba(108,92,231,0.15);
}

.role-card.selected img {
    opacity: 1;
}

.role-card.selected span {
    color: #4338ca;
}

.goal-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.goal-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.goal-card:hover {
    border-color: #c7d2fe;
    background: #fafaff;
}

.goal-card.selected {
    border-color: #4f46e5;
    background: #f5f7ff;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}

.hear-about-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.hear-about-card:hover {
    border-color: #c7d2fe;
    background: #fafaff;
}

.hear-about-card.selected {
    border-color: #4f46e5;
    background: #f5f7ff;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}

.goal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.goal-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111827;
}

.goal-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 26px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
}

.tool-card:hover {
    border-color: #c7d2fe;
    background: #fafaff;
}

.tool-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tool-card span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

/* Checkbox circle */
.tool-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Selected state */
.tool-card.selected {
    border-color: #4f46e5;
    background: #f5f7ff;
}

.tool-card.selected .tool-check {
    border-color: #4f46e5;
    background: #4f46e5;
}

.tool-card.selected .tool-check::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.step-subtitle {
    margin-bottom: 28px;
    color: #6b7280;
    font-size: 15px;
}

/* Form layout */
.form-group {
    text-align: left;
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Text input */
.form-group input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

/* URL input */
.url-input {
    display: flex;
    align-items: center;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-input:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

.url-prefix {
    font-size: 14px;
    color: #6b7280;
    margin-right: 6px;
    user-select: none;
}

.url-input input {
    border: none !important;
    /* outline: none; */
    font-size: 15px;
    flex: 1;
}

/* Helper text */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Actions */
.onboarding-actions.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.form-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}

.url-input.invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}

/* STEP 7 CARD */
#trainingStep {
    background: #ffffff;
    border-radius: 16px;
    /* padding: 48px 40px 40px; */
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); */
    max-width: 720px;
    margin: 0 auto;
}

/* Header */
#trainingStep .onboarding-step-header {
    text-align: center;
    margin-bottom: 32px;
}

/* Green success circle (matches image) */
#trainingStep .onboarding-step-header::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 34px;
    font-weight: 700;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08);
}

#training-header-text {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

/* Main container */
.training-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Loader */
.training-loader {
    width: 56px;
    height: 56px;
    border: 5px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status text */
#trainingStatusText {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    max-width: 420px;
    line-height: 1.6;
}

/* WHAT'S NEXT BOX */
#trainingStep .training-container::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 28px 0;
}

/* Next steps container */
#trainingStep .training-container::before {
    content: "What's next?\A\A🧪  Test your AI Agent\A   Have a few conversations and improve the answers if needed.\A\A🌐  Add it to your website\A   Copy and paste a small piece of code to show it on your site.\A\A🚀  Let it work for you!\A Let your AI agent handle customer questions 24/7.";
    white-space: pre-wrap;
    display: block;
    width: 100%;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 24px;
}

/* Button */
#testChatbotBtn {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
}

