/* ===========================================
   INTEGRATIONS STYLES
   ========================================== */

/* Integration tabs */
.integration-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4f46e5;
}

.tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Main page integrations section */
.integrations-section {
    margin-top: 2rem;
}

.integration-setup-bubble,
.integrations-status-display {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.integration-bubble-icon,
.integrations-status-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.integration-bubble-title,
.integrations-status-title {
    font-size: 1.25rem;
    font-weight: 200;
    margin: 0 0 0.5rem 0;
}

.integration-bubble-text,
.integrations-status-count {
    opacity: 0.9;
    margin: 0 0 1rem 0;
}

.integration-bubble-btn,
.integrations-manage-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.integration-bubble-btn:hover,
.integrations-manage-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.integration-bubble-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.integration-bubble-close:hover {
    opacity: 1;
}

.integrations-status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.integrations-status-info {
    flex: 1;
}

.integration-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 200;
}

.integration-badge.jira-badge {
    background: #dbeafe;
    color: #1e40af;
}

.integration-badge.gmail-badge {
    background: #fef3c7;
    color: #92400e;
}

.integration-badge.calendar-badge {
    background: #cffafe;
    color: #155e75;
}

.integration-badge.asana-badge {
    background: #dcfce7;
    color: #166534;
}

/* Calendar detection banner (mirrors email/follow-up banner style) */
.calendar-integration-banner {
    margin: 16px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.calendar-integration-banner.show { opacity: 1; transform: translateY(0); }
.calendar-banner-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.calendar-banner-text h4 { margin: 0 0 6px 0; font-size: 1.1rem; }
.calendar-banner-text p { margin: 0; opacity: 0.9; }
.calendar-banner-actions { display: flex; gap: 10px; }
.calendar-banner-btn { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.15); color: #fff; padding: 10px 14px; border-radius: 8px; cursor: pointer; transition: all .2s ease; }
.calendar-banner-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }
.calendar-banner-btn.primary { background: rgba(255,255,255,0.25); font-weight: 200; }

/* Asana workspace selector */
.asana-workspace-select .select-and-action {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.asana-workspace-select .select-and-action select {
    flex: 1;
}

.asana-workspace-select .select-and-action .btn-secondary {
    white-space: nowrap;
}

/* Modal connection styles */
.connections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.connections-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1.2rem;
    font-weight: 200;
}

.connections-list {
    margin-bottom: 1rem;
}

.no-connections {
    text-align: center;
    padding: 2rem;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
}

.no-connections-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-connections p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.no-connections p:first-of-type {
    font-weight: 200;
    color: #374151;
    font-size: 1.1rem;
}

/* Google Sign-in Button */
.google-signin-container {
    margin: 1.5rem 0;
    text-align: center;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 200;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
    justify-content: center;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #c1c7cd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:active {
    background: #f1f3f4;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:disabled {
    background: #f8f9fa;
    color: #9aa0a6;
    cursor: not-allowed;
    border-color: #dadce0;
}

.google-icon {
    flex-shrink: 0;
}

.signin-text {
    flex: 1;
    text-align: center;
}

.google-signin-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form description and instructions */
.form-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.instruction-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.instruction-box h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 200;
}

.instruction-box ol {
    margin: 0;
    padding-left: 1.2rem;
    color: #64748b;
}

.instruction-box li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.security-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
}

.security-note p {
    margin: 0;
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.4;
}

.security-note a {
    color: #0ea5e9;
    text-decoration: underline;
}
