/* Integrations catalog */

.ig-page-wrap {
    background: #eef1f8;
    margin: -0.5rem -0.75rem 0;
    padding: 1.75rem 0.75rem 3rem;
    min-height: calc(100vh - 88px);
}

.ig-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 0.5rem;
    font-family: Airbnb, Inter, "Segoe UI", system-ui, sans-serif;
    color: #262646;
}

/* material-dashboard sets h1–h3 to Roboto Slab — keep Integrations headings on Airbnb */
.ig-page h1,
.ig-page h2,
.ig-page h3,
.ig-page h4,
.ig-page h5,
.ig-page h6,
.ig-modal h1,
.ig-modal h2,
.ig-modal h3,
.ig-modal h4,
.ig-modal h5,
.ig-modal h6 {
    font-family: Airbnb, Inter, "Segoe UI", system-ui, sans-serif;
}

.ig-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.ig-title {
    margin: 0 0 0.4rem;
    font-family: Airbnb, Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #262646;
}

.ig-subtitle {
    margin: 0;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #6b7280;
    font-weight: 400;
}

.ig-request-btn {
    flex-shrink: 0;
    background: #fff;
    color: #262646;
    border: 1px solid #d7dbe6;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.ig-request-btn:hover {
    background: #f8fafc;
    color: #262646;
}

.ig-banner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #e7faf6;
    border: 1px solid #c8f0e8;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    font-size: 0.88rem;
    color: #0f766e;
    font-weight: 500;
}

.ig-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14b8a6;
    flex-shrink: 0;
}

.ig-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.ig-chip {
    border: none;
    background: #fff;
    color: #4b5563;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.ig-chip:hover {
    background: #f8fafc;
    color: #262646;
}

.ig-chip.active {
    background: #262646;
    color: #fff;
    box-shadow: none;
}

.ig-chip.active:hover {
    background: #1f1f3d;
    color: #fff;
}

.ig-search {
    position: relative;
    max-width: 220px;
    margin-bottom: 1.15rem;
}

.ig-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.ig-search input {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px 8px 34px;
    font-size: 14px;
    color: #262646;
}

.ig-search input:focus {
    outline: none;
    border-color: #3fd6d4;
    box-shadow: 0 0 0 3px rgba(63, 214, 212, 0.16);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ig-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.15rem 1.2rem 0.95rem;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    box-shadow: 0 8px 24px rgba(38, 38, 70, 0.05);
}

.ig-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.ig-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ig-icon-fireflies { background: #dcfce7; color: #16a34a; }
.ig-icon-gmail { background: #fce7f3; color: #db2777; }
.ig-icon-outlook { background: #dbeafe; color: #2563eb; }
.ig-icon-cal { background: #eef2ff; color: #4f46e5; }
.ig-icon-slack { background: #fce7f3; color: #db2777; }
.ig-icon-aircall { background: #d1fae5; color: #0d9488; }
.ig-icon-gdrive { background: #dcfce7; color: #16a34a; }
.ig-icon-onedrive { background: #dbeafe; color: #2563eb; }
.ig-icon-zoom { background: #dbeafe; color: #2563eb; }
.ig-icon-teams { background: #ede9fe; color: #6d28d9; }
.ig-icon-meet { background: #d1fae5; color: #059669; }
.ig-icon-twilio { background: #fce7f3; color: #e11d48; }
.ig-icon-annature { background: #ccfbf1; color: #0f766e; }
.ig-icon-zapier { background: #ffedd5; color: #ea580c; }

.ig-connected-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e7faf6;
    color: #0f766e;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}

.ig-connected-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14b8a6;
}

.ig-card-name {
    margin: 0 0 0.15rem;
    font-family: Airbnb, Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #262646;
}

.ig-card-cat {
    margin: 0 0 0.7rem;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.ig-card-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    flex: 1;
}

.ig-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.05rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.ig-card-status {
    font-size: 12.5px;
    color: #9ca3af;
}

.ig-connect-btn {
    background: #fff;
    color: #262646;
    border: 1.5px solid #262646;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ig-connect-btn:hover {
    background: #262646;
    color: #fff;
}

.ig-manage-link {
    background: none;
    border: none;
    padding: 0;
    color: #262646;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.ig-manage-link:hover {
    color: #0f766e;
}

.ig-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 2.5rem 1rem;
    background: #fff;
    border-radius: 16px;
}

.ig-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1080;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem 2rem;
    overflow: auto;
}

.ig-modal {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    margin-bottom: 2rem;
}

.ig-modal-sm {
    max-width: 460px;
}

.ig-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem 0.85rem;
    border-bottom: 1px solid #eef2f7;
}

.ig-modal-head h2 {
    margin: 0 0 0.25rem;
    font-family: Airbnb, Inter, "Segoe UI", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #262646;
}

.ig-modal-head p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.ig-modal-close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}

.ig-modal-close:hover {
    color: #262646;
}

.ig-modal-body {
    padding: 1.15rem 1.35rem 1.35rem;
}

.ig-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ig-input,
.ig-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    margin-bottom: 0.9rem;
}

.ig-textarea {
    min-height: 96px;
    resize: vertical;
}

.ig-input:focus,
.ig-textarea:focus {
    outline: none;
    border-color: #3fd6d4;
    box-shadow: 0 0 0 3px rgba(63, 214, 212, 0.15);
}

.ig-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.ig-btn-teal {
    background: #3fd6d4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ig-btn-teal:hover {
    background: #35c4c2;
    color: #fff;
}

.ig-btn-teal:disabled {
    opacity: 0.65;
}

@media (max-width: 992px) {
    .ig-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ig-header {
        flex-direction: column;
    }

    .ig-title {
        font-size: 1.65rem;
    }

    .ig-grid {
        grid-template-columns: 1fr;
    }
}
