/* ========== INVITATIONS ========== */
.invitations-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}
.invitations-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.invitations-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.invite-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}
.invite-header {
    padding: 12px 16px;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
}
.invite-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 30px;
}
.invite-title-row strong {
    font-size: 0.95rem;
}
.invite-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
}
.pending-badge {
    background: #fef3c7;
    color: #b45309;
}
.accepted-badge {
    background: #d1fae5;
    color: #065f46;
}
.declined-badge {
    background: #fee2e2;
    color: #991b1b;
}
.invite-group-line, .invite-dates-line {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #475569;
}
.toggle-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.1rem;
    cursor: pointer;
}
.invite-details {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    background: white;
}
.invite-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
}
.btn-accept, .btn-decline, .btn-transfer {
    border: none;
    border-radius: 2rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
}
.btn-accept {
    background: #d1fae5;
    color: #065f46;
}
.btn-decline {
    background: #fee2e2;
    color: #991b1b;
}
.btn-transfer {
    background: #f0f4fe;
    color: #3b82f6;
}
.btn-transfer-invitation {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-radius: 2rem;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.recurrence-info {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.decline-reason {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 4px;
}
.event-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.btn-archive-event, .btn-delete-event-invitations {
    background: #f1f5f9;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.75rem;
    cursor: pointer;
}
.btn-archive-event {
    background: #eff6ff;
    color: #3b82f6;
}
.btn-delete-event-invitations {
    background: #fef2f2;
    color: #ef4444;
}